Skip to content

翻了车的老司机

其实我一直在你身边

Search for:

五月 18, 2018Daily Archives

GOLANG学习19. 切片声明

切片是数组的引用
切片的长度可以改变,切片是一个可变的数组
切片和数组一样,可以用len求长度
cap可以求切片的最大容量
切片的定义 var str []string

  • Posted on: 2018年5月18日 2018年5月18日
  • Author: zzs10086
  • Categories: go

GOLANG学习18. 数组声明

var a1 [5]int = [5]int{1, 2, 3, 4, 5}
var a6 [2][5]int = […][5]int{{1, 2, 3, 4, 5}, {22, 23, 24, 25, 26}}

  • Posted on: 2018年5月18日 2018年5月18日
  • Author: zzs10086
  • Categories: go

GOLANG学习17. 内置函数

close,主要用来关闭channel
len,主要用来求长度,例如:string,array,slice,map,channel

  • Posted on: 2018年5月18日 2018年5月18日
  • Author: zzs10086
  • Categories: go

GOLANG学习16. 函数定义使用

不支持重载,一个包里面不能有两个相同名称的函数
函数也是一种类型,函数可以赋值给一个变量
支持匿名函数
支持多返回值

  • Posted on: 2018年5月18日 2018年5月18日
  • Author: zzs10086
  • Categories: go

GOLANG学习15. for语法使用

for i := 0; i < 10; i++ for k, v := range str

  • Posted on: 2018年5月18日 2018年5月18日
  • Author: zzs10086
  • Categories: go

分类目录

  • docker
  • elasticsearch
  • git
  • go
  • java
  • javascript
  • laravel
  • Linux
  • mysql
  • nginx
  • node.js
  • php
  • redis
  • shell
  • vue
  • webpack
  • 小程序
Search for:
2018年五月
一 二 三 四 五 六 日
« 4月   8月 »
 123456
78910111213
14151617181920
21222324252627
28293031  

近期文章

  • wordpress如何开启全站https
  • CentOS上安装Redis
  • ECMAScript 数组遍历
  • ECMAScript 数组
  • Ecmascript Push 和 Pop 方法

近期评论

    © 2025 翻了车的老司机. 我在你身边绕了一个圈,回到原点你却已在远方。

    苏ICP备16035736号-3

    友情链接:一览网  江苏景威控股集团有限公司