mirror of
https://github.com/fatedier/frp.git
synced 2024-11-30 23:19:00 +08:00
2f74f54f18
* Get rid of ugly statik go1.16 introduced the embed package, it's the more graceful solution for embedding file into binary. https://golang.org/pkg/embed/ * remove statik totally * split go and static files in assets
15 lines
154 B
Go
15 lines
154 B
Go
package frpc
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/fatedier/frp/assets"
|
|
)
|
|
|
|
//go:embed static/*
|
|
var content embed.FS
|
|
|
|
func init() {
|
|
assets.Register(content)
|
|
}
|