mirror of
https://github.com/schollz/croc.git
synced 2024-11-30 14:03:59 +03:00
34 lines
666 B
Go
34 lines
666 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 (
|
|
"fmt"
|
|
|
|
"github.com/schollz/croc/v8/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 {
|
|
fmt.Println(err)
|
|
}
|
|
}
|