croc/main.go

34 lines
666 B
Go
Raw Normal View History

2018-06-28 15:38:07 +02:00
package main
2019-06-20 16:10:37 +02:00
//go:generate go run src/install/updateversion.go
2019-06-20 16:10:37 +02:00
//go:generate git commit -am "bump $VERSION"
//go:generate git tag -af v$VERSION -m "v$VERSION"
2018-06-28 15:38:07 +02:00
2018-10-17 15:39:02 +02:00
import (
"log"
2018-06-30 18:47:27 +02:00
2021-04-17 19:33:38 +02:00
"github.com/schollz/croc/v9/src/cli"
2019-04-30 01:09:37 +02:00
)
2018-06-30 18:47:27 +02:00
2018-09-22 05:51:43 +02:00
func main() {
2019-11-11 20:26:32 +01:00
// "github.com/pkg/profile"
// go func() {
// for {
// f, err := os.Create("croc.pprof")
// if err != nil {
// panic(err)
// }
// runtime.GC() // get up-to-date statistics
// if err := pprof.WriteHeapProfile(f); err != nil {
// panic(err)
// }
// f.Close()
// time.Sleep(3 * time.Second)
// fmt.Println("wrote profile")
// }
// }()
2019-04-30 01:09:37 +02:00
if err := cli.Run(); err != nil {
log.Fatalln(err)
2019-04-30 01:09:37 +02:00
}
2018-09-22 07:25:01 +02:00
}