main.go 277 B

1234567891011121314151617181920
  1. package main
  2. import (
  3. "context"
  4. "github.com/spf13/cobra"
  5. "github.com/ollama/ollama/cmd"
  6. "net/http"
  7. _ "net/http/pprof"
  8. )
  9. func main() {
  10. go func() {
  11. http.ListenAndServe("localhost:6060", nil)
  12. }()
  13. cobra.CheckErr(cmd.NewCLI().ExecuteContext(context.Background()))
  14. }