- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 golang chan 使用的一个坑
现有两个无缓冲的chan saveChan和sendChan,saveChan中的数据取出送到sendChan。 当sendChan拥塞时不断向saveChan中发数据,会导致saveChan也拥塞
2017-09-18 15:53:03 3216
原创 golang 接口嵌套实现复用
package mainimport ( "fmt")func main() { start(NewB(C{})) start(NewB(D{}))}type A interface { what()}type B struct { A}type C struct {}func (b C) what() { fmt.Println("this
2017-09-18 13:03:02 3739
原创 Ubuntu 16.04 配置网卡
$ ifconfig -a展示全部网卡$ ifconfig enp2s0 up启用网卡enp2s0$ sudo vi /etc/network/interfaces输入auto enp2s0iface enp2s0 inet staticaddress 192.168.2.10network 255.255.255.0gateway 192.168.2.1完成网卡配置
2017-09-07 11:34:26 43844 2
转载 使用dd制作Ubuntu Server U启
$ umount /dev/sdb1$ sudo dd bs=4M if=ubuntu-16.04.3-server-amd64.iso of=/dev/sdb && sync参考
2017-09-06 16:56:29 636
MinGW-w64-7.1.0-release-posix-seh
2017-08-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人