Files
ss/templates/embed.go
2026-07-19 20:01:38 +08:00

17 lines
484 B
Go

// 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