Skip to content

Instantly share code, notes, and snippets.

@xiachengjia
Created December 19, 2018 06:26
Show Gist options
  • Save xiachengjia/ee60c0f13ff5c1d34cbf7e5d1c1ee190 to your computer and use it in GitHub Desktop.
Save xiachengjia/ee60c0f13ff5c1d34cbf7e5d1c1ee190 to your computer and use it in GitHub Desktop.
go module bug with github.com/ugorji/go
// export GO111MODULE=on
// go mod init main
// go build ./...
package main
import (
"fmt"
"go.etcd.io/etcd/client"
"os"
)
func main() {
_, err := client.New(
client.Config{
Endpoints: []string{"http://localhost:2379"},
})
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment