go手记

相关文档

http://www.topgoer.com/

 

包在线文档: https://pkg.go.dev/github.com/thinkeridea/go-extend/exnet#section-directories 

 

切换源

go env -w GO111MODULE=on

go env -w GOPROXY=https://goproxy.io,direct

https://blog.csdn.net/u014381782/article/details/106361780/

 

安装扩展

go mod vendor

  

cannot find module providing package github.com/gin-gonic/gin: 安装gin后找不到gin包

 go mod init gin
 
 go mod edit -require github.com/gin-gonic/gin@latest

  

go编译报go: cannot find main module; see 'go help modules'

https://blog.csdn.net/yuexiazhufeng/article/details/84570680

 

Go 语言中 = 和 := 有什么区别

= 是赋值, := 是声明变量并赋值。

// = 使用必须使用先var声明例如:
var a
a=100
//或
var b = 100
//或
var c int = 100
 
// := 是声明并赋值,并且系统自动推断类型,不需要var关键字
d := 100

  

go与php

https://www.sohu.com/a/142662062_505802

https://studygolang.com/articles/12195?fr=sidebar

posted @ 2020-10-29 16:28  程序生(Codey)  阅读(101)  评论(0编辑  收藏  举报