1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 16:23:47 +03:00
croc/main.go

34 lines
666 B
Go
Raw Normal View History

2018-06-28 16:38:07 +03:00
package main
2019-06-20 17:10:37 +03:00
//go:generate go run src/install/updateversion.go
2019-06-20 17:10:37 +03:00
//go:generate git commit -am "bump $VERSION"
//go:generate git tag -af v$VERSION -m "v$VERSION"
2018-06-28 16:38:07 +03:00
2018-10-17 16:39:02 +03:00
import (
2019-04-30 02:09:37 +03:00
"fmt"
2018-06-30 19:47:27 +03:00
2020-02-29 03:57:46 +03:00
"github.com/schollz/croc/v8/src/cli"
2019-04-30 02:09:37 +03:00
)
2018-06-30 19:47:27 +03:00
2018-09-22 06:51:43 +03:00
func main() {
2019-11-11 22:26:32 +03: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 02:09:37 +03:00
if err := cli.Run(); err != nil {
fmt.Println(err)
}
2018-09-22 08:25:01 +03:00
}