自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

MinGW-w64 7.1.0 posix seh v1 源地址:https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/7.1.0/threads-posix/seh/

2017-08-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除