
go1.16 introduced the embed package, it's the more graceful solution for embedding file into binary. https://golang.org/pkg/embed/
15 lines
147 B
Go
15 lines
147 B
Go
package frpc
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/fatedier/frp/assets"
|
|
)
|
|
|
|
//go:embed *
|
|
var content embed.FS
|
|
|
|
func init() {
|
|
assets.Register(content)
|
|
}
|