Skip to content

k4ties/embeddable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embeddable

Embeddable is package that allows you to embed any struct to file, with specified marshal format (json, toml, yaml) It is very helpful for small configs.

For example:

//go:embed filename.json 
var b []byte
var conf = embeddable.MustExtract[map[string]any](embeddable.JSON, b)
// do something with conf

Examples are located in the example folder.

About

Package that allows you to embed any struct to file, with specified marshal format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages