mirror of
https://github.com/schollz/croc.git
synced 2024-11-27 12:34:19 +03:00
34 lines
667 B
Go
34 lines
667 B
Go
package main
|
|
|
|
//go:generate go run src/install/updateversion.go
|
|
//go:generate git commit -am "bump $VERSION"
|
|
//go:generate git tag -af v$VERSION -m "v$VERSION"
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/schollz/croc/v10/src/cli"
|
|
)
|
|
|
|
func main() {
|
|
// "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")
|
|
// }
|
|
// }()
|
|
if err := cli.Run(); err != nil {
|
|
log.Fatalln(err)
|
|
}
|
|
}
|