From 46e839f189150ae46b2d5837d047bd6db0d374fd Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 15 Apr 2020 00:26:43 +0530 Subject: Add example for UnveilBlock in readme --- README.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.org b/README.org index 7c347a8..883f956 100644 --- a/README.org +++ b/README.org @@ -63,3 +63,20 @@ func main() { } } #+END_SRC +** UnveilBlock +UnveilBlock is just a wrapper around unix.UnveilBlock, it does nothing extra. +You should use unix.UnveilBlock. + +#+BEGIN_SRC go +package main + +import "tildegit.org/andinus/lynx" + +func main() { + // Block further unveil calls. + err = lynx.UnveilBlock() + if err != nil { + log.Fatal(err) + } +} +#+END_SRC -- cgit 1.4.1-2-gfad0