mirror of
https://github.com/chainreactors/spray.git
synced 2025-05-05 10:16:54 +00:00
25 lines
532 B
Go
25 lines
532 B
Go
//go:generate go run templates/templates_gen.go -t templates -o pkg/templates.go -need spray
|
|
package main
|
|
|
|
import (
|
|
"github.com/chainreactors/spray/cmd"
|
|
"github.com/gookit/config/v2"
|
|
"github.com/gookit/config/v2/yaml"
|
|
//_ "net/http/pprof"
|
|
)
|
|
|
|
func init() {
|
|
config.WithOptions(func(opt *config.Options) {
|
|
opt.DecoderConfig.TagName = "config"
|
|
opt.ParseDefault = true
|
|
})
|
|
config.AddDriver(yaml.Driver)
|
|
}
|
|
|
|
func main() {
|
|
//f, _ := os.Create("cpu.txt")
|
|
//pprof.StartCPUProfile(f)
|
|
//defer pprof.StopCPUProfile()
|
|
cmd.Spray()
|
|
}
|