diff options
author | Andinus <andinus@nand.sh> | 2020-04-15 00:26:43 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-04-15 00:26:43 +0530 |
commit | 46e839f189150ae46b2d5837d047bd6db0d374fd (patch) | |
tree | 441fd1d4aee4b845cf77a0c27038e292be4ee636 | |
parent | a129334aefa559e36783347c5243303a6dd8b104 (diff) | |
download | lynx-46e839f189150ae46b2d5837d047bd6db0d374fd.tar.gz |
Add example for UnveilBlock in readme
-rw-r--r-- | README.org | 17 |
1 files changed, 17 insertions, 0 deletions
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 |