feat: migrate to golang
This commit is contained in:
16
templates/embed.go
Normal file
16
templates/embed.go
Normal file
@ -0,0 +1,16 @@
|
||||
// Package templates embeds the default core config and hook script
|
||||
// templates into the ss binary, replacing the Python version's
|
||||
// Path(__file__).parent / "templates" lookup.
|
||||
package templates
|
||||
|
||||
import "embed"
|
||||
|
||||
// DefaultCoreConfig is the default mihomo/clash core configuration template.
|
||||
//
|
||||
//go:embed default-core-config.yaml
|
||||
var DefaultCoreConfig []byte
|
||||
|
||||
// Hooks contains the bundled hook script templates (core_config_generated.py/.js).
|
||||
//
|
||||
//go:embed hooks
|
||||
var Hooks embed.FS
|
||||
Reference in New Issue
Block a user