05 2018 档案
摘要:https://groups.google.com/forum/#!topic/golang-nuts/JkvR4dQy9t4 https://golang.org/misc/cgo/gmp/gmp.go https://stackoverflow.com/questions/19910647/pa
阅读全文
摘要:https://go.googlesource.com/proposal/+/master/design/12416-cgo-pointers.md https://github.com/golang/go/issues/12416 Proposal: Rules for passing point
阅读全文
摘要:https://golang.org/misc/cgo/test/callback.go
阅读全文
摘要:interactive prompt library: abiosoft/ishell https://github.com/abiosoft/ishell Library for creating interactive cli applications. manifoldco/promptui
阅读全文
摘要:http://book.emacs-china.org/#orgheadline1
阅读全文
摘要:推荐第一个: https://github.com/spf13/spf13-vim https://github.com/Spacevim/Spacevim https://github.com/JBakamovic/yavide linux 下阅读代码还有个收费软件: scitools under
阅读全文
摘要:GOROOT golang安装路径。 GOPATH GOPATH可以设置多个工程目录,linux下用冒号分隔(必须用冒号,fish shell的空格分割会出错),windows下用分号分隔,但是go get 只会下载pkg到第一个目录,但是编译的时候会搜索所有的目录。 在fish shell下,使用
阅读全文
摘要:https://steemit.com/byteball/@punqtured/processing-for-good-get-rewarded-for-crunching-numbers-to-cure-diseases http://wiki.byteball.org/WCG_distribut
阅读全文
摘要:The channel is divided into two categories: unbuffered and buffered. (1) Unbuffered channelFor unbuffered channel, the sender will block on the channe
阅读全文
摘要:一、更新源的配置: 1)、自动方法: 在 终端 执行下面的命令从官方的源列表中对中国源进行测速和设置 2)、手动方法 自动方法(上面的方法1,自动测速)的源ping虽然低但是更新时不是很稳定,下载速度忽高忽低,所以也可以用下面的方法手动指定想要使用的源。 创建一个名为 /etc/pacman.d/m
阅读全文
摘要:(如果不想折腾arch linux,推荐直接使用 manjaro: https://manjaro.org/ ) 1、安装准备 Arch Linux 能在任何内存空间不小于 512MB 的 x86_64 兼容机上运行。用 base 组内的软件包进行的基本安装将占用小于 800MB 的存储空间。由于安
阅读全文
摘要:进行高进度运算的时候unint64已经无法满足需求,这个时候大家可以采用math.big库来进行高进度计算,下面以计算第10000位的菲波纳切数来展示big的用法,代码如下: package main import ( "fmt" "math/big" "time" ) const LIM = 10
阅读全文
摘要:最简单最常用的方法是,使用如下命令更新到新的版本: 但是这个方法有时候不一定能起作用,那么可以使用以下直接替换的命令: 对于 Linux Mint, 使用如下代码: 可能还需要看看是否还有其它文件需要更新: 最后:
阅读全文
摘要:安装: 安装完毕后,可能没法关机及logout,可以使用如下安装: 如果还是不能关机和logout,则用下面的试试: 如果需要看是否要移除 clipit,它可能带有不安全因素。 如果由于ubuntu版本太老而无法用apt-get安装,可以先加入: lxde 下交换ctrl及caps lock的方法:
阅读全文