Home

ugit @868ca2125ac5568f162543751cdb5f89918996e4 - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
ugit / assets / assets.go
- raw
 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
}