8000
Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vfsgen-sample

An sample of using embedded files in Go.

Build

# with makefile (recommended)
make

# with commands
cd data && go generate -tags dev && cd -
go build

Cleanup

# makefile
make clean

# or
go clean
rm -f data/assets_vfsdata.go

Versioning

Using -ldflags:

go build -ldflags '-X main.version=1.0'

Run

Run ./vfsgen-sample after building, then open http://localhost:7070 in your brower to check the served embedded files.

Also view the console log to check whether reading files from vfsgen is okay.

Reference

About

An sample of using embedded files in Go with vfsgen: https://github.com/shurcooL/vfsgen

Topics

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0