Skip to content

demo of upcoming go 1.16 package "io/fs" and embed features

Notifications You must be signed in to change notification settings

jandelgado/go1.16-embed-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go 1.16 embed.FS and fs.FS demo

Short demo of upcoming go 1.16 "io/fs" package and file embedding feature.

Depending on how the binary is built, either with dev build tag or without, the assets/ folder will be embedded in the code (without dev tag), or the assets will be read from the filesystem.

Run make to build the demo. The embed-demo will have the assets folder compiled-in. The embed-demo-dev will use the filesystem to obtain the assets.

See also

Copyright 2020 by Jan Delgado, License MIT.

About

demo of upcoming go 1.16 package "io/fs" and embed features

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published