Go package
摘要:package的作用 区分相同名字的函数、变量等标识符 控制函数、变量等访问范围,即作用域 package的使用 package对应的文件夹下面的go文件的package必须都是一样的 import ("XXX") import ("XXX" "Path") 如果package下面的go文件的pac
阅读全文
Go goto
摘要:goto label: // 在label里面的语句,只要被扫描到,都会执行,并不会因为是label里面的语句就跳过(如,当我们语句从上扫描到这里,先执行XXX在到goto等接下来的语句) XXX goto label
阅读全文
Go loop
摘要:for (only no while statement) for{ } for ; ;{ } for true{ } // for range 用来遍历字符串或者数组 for index, value := range XXX{}
阅读全文
Go string
摘要:Go 语言的字符串是基本数据类型之一,实际上面通过字节数组实现,遍历中文的时候需要转化为rune(int32)类型,之后%c输出 基本类型-> string fmt.Sprintf();// strconv.XXX(); string -> 基本类型 strconv.XXX();// 转换的时候如果
阅读全文
bat win设置proxy
摘要:设置代理 @echo off echo 开始设置IE代理上网 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f reg add
阅读全文