
Golang
文章平均质量分 65
_RTFSC
Linux 下 C/C++ 程序员一枚~~
展开
-
Go 语言 与 C 语言 的比较学习
关键字 分类 C Go 字符 char 无 字符串 无 string 浮点数 double , float float32 , float64 , complex64 , complex128 整数 int long short uint8 , uint16 , uint32 , uint64 , int8 , int16 , int32 ,原创 2015-04-11 14:06:17 · 3387 阅读 · 0 评论 -
Golang Log 学习笔记
官方Doc链接 http://godoc.golangtc.com/pkg/log/简介 Package log implements a simple logging package. It defines a type, Logger, with methods for formatting output. It also has a predefined ‘standard’ Log原创 2015-11-13 18:18:11 · 692 阅读 · 0 评论 -
Go 语言测试(Test)、性能测试(Benchmark) 学习笔记
简介 Test Package testing provides support for automated testing of Go packages. It is intended to be used in concert with the “go test” command, which automates execution of any function of the form原创 2015-09-02 17:57:40 · 20960 阅读 · 3 评论 -
Go 语言项目管理
Go 作为自带项目管理的编程语言,及其方便。目录结构通常, 一个Go语言项目 ( 假设这个项目的根目录是 GoProjectRoot )的目录是这样的 :一级目录 GoProjectRoot/src #包含项目的源代码文件; GoProjectRoot/pkg #包含编译后生成的包/库文件; GoProjectRoot/bin #包含编译后生成的可执行文件。其中src目录需要我原创 2015-11-13 17:16:10 · 1823 阅读 · 0 评论 -
log4go 源码剖析
log4go 源码下载https://github.com/alecthomas/log4go.git 源码目录...config.goexamples filelog.go.git.gitignoreLICENSElog4go.golog4go_test.gopattlog.goREADMEsocklog.gotermlog.gowrapper.go源码剖析对问题的抽象原创 2016-04-05 16:01:25 · 4132 阅读 · 0 评论 -
cron表达式解析 + robfig/cron 源码剖析
robfiig/cron 源码剖析项目信息下载地址https://github.com/robfig/cron.git文件目录讲解constantdelay.go #一个最简单的秒级别定时系统。与cron无关constantdelay_test.go #测试cron.go #Cron系统。管理一系列的cron定时任务(Schedul原创 2016-04-07 11:39:06 · 14478 阅读 · 8 评论 -
Vim - Go
Go - vimInstall Vundle https://github.com/VundleVim/Vundle.vimInstall vim-goDownload git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vimconfig" Put inside Vundle " Instal原创 2016-03-25 14:30:36 · 897 阅读 · 0 评论 -
golang 从源码编译记录
下载golang 源码 git clone https://github.com/golang/go.git笔者写此博客的时候最新是go 1.10.1 版本。 源码目录 /root/source_bk/go_source/go基本编译流程解释go 语言编译器自1.5版本开始自举 ( 使用go编译器编译go编译器 ) 。所以最新的源码编译其实是直接使用go 编译器来编译。...原创 2018-04-09 23:11:22 · 2447 阅读 · 0 评论 -
go 命令汇总解释
go 命令解释>go helpGo is a tool for managing Go source code.看,人家叫管理go代码的工具,已经超出编译器的范畴。真是大爱啊!Usage: go command [arguments] 使用格式 : go 命令 参数们The commands are: build compile packa...原创 2018-04-10 22:13:09 · 3962 阅读 · 2 评论