240 发简信
IP属地:北京
  • 连接公司办公网后回家无法上网

    连接公司办公网后回家无法上网,这个情况可以通过设置DNS解决,但是mac编辑DNS的时候卡住,电扇疯转,可以用下面的命令设置。

  • 025. defer函数

    git地址[https://github.com/jianlong0808/go_learn] defer函数类似于java中的finally。 函数内可以定义多个defer...

  • 024. 可变参数列表

    git地址[https://github.com/jianlong0808/go_learn] 可变参数列表用来解决参数个数不固定的情况。 可变参数被看成是一个切片. 可变参...

  • 023. 函数=一等公民

    git地址[https://github.com/jianlong0808/go_learn] 函数是golang中的一等公民. 可以声明函数类型的变量. 函数可以作为函数的...

  • 022. 错误处理

    git地址[https://github.com/jianlong0808/go_learn] 常见的异常处理方式: 返回给调用者, 让调用者处理(此时返回的错误要足够详尽,...

  • 021. template

    git地址[https://github.com/jianlong0808/go_learn] Golang text/template 包是一个数据驱动的模版渲染工具。提供...

  • 020. json

    git地址[https://github.com/jianlong0808/go_learn] 用于marshal和unmarshal的结构体变量名要为可导出的(首字母大写)...

  • 019. struct(结构体)

    git地址[https://github.com/jianlong0808/go_learn] 结构体是自定义的类型, 结构体中的成员都是变量 结构体成员变量的顺序对于结构体...

  • 018. 工具篇(日志/ssh连接/配置文件路径)

    git地址[https://github.com/jianlong0808/go_learn] 前几天因为公司的云主机连接外网突然故障,导致几台服务器无法提供服务,为了定时的...

  • 017. map&set

    git地址[https://github.com/jianlong0808/go_learn] map是无序的, 且每次遍历的顺序都可能不同 最好不要用浮点数作为key,ke...

  • 016. 切片

    git地址[https://github.com/jianlong0808/go_learn] 一个slice由三个部分构成:指针、长度和容量, 因为有指针, 所以函数中切片...

  • 015. 数组

    git地址[https://github.com/jianlong0808/go_learn] 数组的长度是固定的, 声明之后大小不能改变,因此项目中很少直接使用数组,而是使...

  • 014. 常量

    git地址[https://github.com/jianlong0808/go_learn] 常量是在编译期确定的, 任何试图改变常量的行为都会报编译错误 常量可以作为数组...

  • 013. 字符串

    git地址[https://github.com/jianlong0808/go_learn] 字符串是一个不可变的字节序列, 可以包含任意的数据, 需要注意的是不可变是说本...

  • 012. 浮点数

    git地址[https://github.com/jianlong0808/go_learn] 优先使用float64, 而不是float32 main.go 此处先记录这些...

  • 120
    011. 整数

    git地址[https://github.com/jianlong0808/go_learn] 优先级,下图中每行为一组, 有五种优先级image.png 算术和逻辑运算的二...

  • 001. 物理机网卡丢包

    查看网卡统计数据 字段含义: RX errors 表示总的收包的错误数量,这包括 too-long-frames 错误,Ring Buffer 溢出错误,crc 校验错误,帧...

  • 010. 包和源文件

    git地址[https://github.com/jianlong0808/go_learn] func init()函数会在包加载的时候优先执行,一般用于包变量的初始化,类...

  • 009. 赋值

    git地址[https://github.com/jianlong0808/go_learn] 声明但是未初始化的变量会有默认零值 指针变量使用时要注意空指针问题,保证先指向...

  • Dockerfile 指令

    参考自官方文档[https://docs.docker.com/engine/reference/builder/]注:本文章不是教程,不说废话 FROM 用于指定基础镜像,...

个人介绍
技术=勤奋+思想+熟练度