解决golang go get gitlab私有仓库的问题(1.13)1. 问题描述require ( git.xxxxxxx.com/middle/user v0.0.1)go mod tidy 导入包失败go get git.xxxxxxx.com/middle/user 失败go build...
在golang中,interface{}允许接纳任意值,int,string,struct,slice等,因此我可以很简单的将值传递到interface{},例如:package mainimport ( 'fmt')type User struct{ Name string}func main()...