[go-nuts] Re: Recommended RESTful API web service implementation after 10 years of Go?

2022-05-12 Thread James Mackerel
checkout this 在2022年5月13日星期五 UTC+8 06:30:04 写道: > There is an official one in Golang documentation: > Tutorial: Developing a RESTful API with Go and Gin > https://go.dev/doc/tutorial/web-service-gin > > I find Gin framework especially good. >

[go-nuts] Re: Getting 410 error from https://sum.golang.org/lookup/github.com for a private github repo

2020-05-27 Thread James Mackerel
You may try: export *GONOSUMDB*="github.com/mycompany/*,github.com/secret/*" to disable sum check for some libraries. But try **not** to do this: > $export GOSUMDB=off or you may face security issue. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Re: x509.ParsePKCS1PrivateKey fails to parse key generated with openssl

2020-04-21 Thread James Mackerel
Hi, Please take a look at . If this is your code to parse your private key: f, err := os.Open(file) > if err != nil { > return nil, err > } > buf, err := ioutil.ReadAll(f) > if