for循环-switch语句:

字符串截取:
subString = string[1:len(string)]
字符串分割成数组:
commands := strings.Split(string, "|") 竖线分割
forEach语句:for _, command := range commands

chan使用、初始化

select ,case,default的使用:

for循环-switch语句:
字符串截取:
subString = string[1:len(string)]
字符串分割成数组:
commands := strings.Split(string, "|") 竖线分割
forEach语句:for _, command := range commands
chan使用、初始化
select ,case,default的使用:
本文标题:Golang学习笔记
本文链接:https://www.haomeiwen.com/subject/hwkfvxtx.html
网友评论