I am trying to download a git repository using go-getter in golang.
I tried to write a small code to test it out but not sure why it’s failing.
package main
import (
"github.com/hashicorp/go-getter"
)
func main() {
client := &getter.Client{
Src: "git::https://github.com/kcl-lang/flask-demo-kcl-manifests?refs=ade147b",
Dst: "/tmp",
Pwd: "/tmp",
}
if err := client.Get(); err != nil {
panic(err)
}
}