initial commit
This commit is contained in:
commit
cc8c8ef967
10 changed files with 398 additions and 0 deletions
10
ui/embed.go
Normal file
10
ui/embed.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package ui
|
||||
|
||||
import "embed"
|
||||
|
||||
//go:embed *.html
|
||||
var htmlFS embed.FS
|
||||
|
||||
func HTMLFS() embed.FS {
|
||||
return htmlFS
|
||||
}
|
4
ui/index.html
Normal file
4
ui/index.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{ define "index" }}
|
||||
hello world
|
||||
{{ . }}
|
||||
{{ end }}
|
3
ui/test.html
Normal file
3
ui/test.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ define "test" }}
|
||||
{{ . }}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue