Saturday, September 15, 2018

To Embed Static Assets in Go

To Embed Static Assets in Go

Requirements:

Compression
Optional decompression
Loading from the local file system
Reproducible builds
Config file
http.FileSystem Interface

vfsgen - https://github.com/shurcooL/vfsgen
fileb0x - https://github.com/UnnoTed/fileb0x
go-assets - https://github.com/jessevdk/go-assets

Reference:

https://tech.townsourced.com/post/embedding-static-files-in-go/

No comments: