https://git.jolheiser.com/ugit.git
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package assets import "embed" var ( //go:embed *.svg Icons embed.FS LinkIcon = must("link.svg") EmailIcon = must("email.svg") LogoIcon = must("ugit.svg") ) func must(path string) []byte { content, err := Icons.ReadFile(path) if err != nil { panic(err) } return content }