summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-15 00:26:43 +0530
committerAndinus <andinus@nand.sh>2020-04-15 00:26:43 +0530
commit46e839f189150ae46b2d5837d047bd6db0d374fd (patch)
tree441fd1d4aee4b845cf77a0c27038e292be4ee636
parenta129334aefa559e36783347c5243303a6dd8b104 (diff)
downloadlynx-46e839f189150ae46b2d5837d047bd6db0d374fd.tar.gz
Add example for UnveilBlock in readme
-rw-r--r--README.org17
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