From 76468d2f514677e2f3a490b6b493d32badfca986 Mon Sep 17 00:00:00 2001 From: Andinus Date: Fri, 24 Apr 2020 20:01:55 +0530 Subject: Add description for unveil() --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.go b/main.go index dfe208c..66d401f 100644 --- a/main.go +++ b/main.go @@ -40,6 +40,16 @@ func main() { } func initCetus() { + // We cannot use complex switches here so instead we unveil + // everything we need. This is bad but the other way will make + // the code too complex, we need a better structure for code. + // This also runs UnveilBlock, instead we could remove this + // unveil func & inline Unveil calls in other functions, this + // way we will only unveil when required. + // + // This method is still used because in earlier lynx version + // we had to manage build flags manually, so keeping + // everything in a single func made sense. unveil() } -- cgit 1.4.1-2-gfad0