github.com/gocaveman/caveman@v0.0.0-20191211162744-0ddf99dbdf6e/webutil/tokenizer.go (about)

     1  package webutil
     2  
     3  // TODO: make something generic that addresses this issue of taking arbitrary data and encrypting it for
     4  // URL, cookie/session, etc. The step of JSON marshaling shoudl be simple but not necessarily included,
     5  // people may want to customize how the marshaling is done - but it should be a one-liner.
     6  // Steal from uifiles/token.go as needed, the gzipping part is kinda cool.
     7  // Probably need to have the thing you put on the context to decode it inside a template - you know some
     8  // clown is going to want that like a teenage girl wants Justin Bieber.