learning-golang

module
v0.0.0-...-f53f79a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2019 License: MIT

README

learning-golang

Exercises while learning golang

GOPATH 配置

  • source env.sh

IDE

  • atom + go-plus
  • IDEA

Refs

Directories

Path Synopsis
src
ast
cgo/cppstaticlib
go run main.go
go run main.go
cipher/crypto
* Generates a private/public key pair in PEM format (not Certificate) * * The generated private key can be parsed with openssl as follows: * > openssl rsa -in key.pem -text * * The generated public key can be parsed as follows: * > openssl rsa -pubin -in pub.pem -text
* Generates a private/public key pair in PEM format (not Certificate) * * The generated private key can be parsed with openssl as follows: * > openssl rsa -in key.pem -text * * The generated public key can be parsed as follows: * > openssl rsa -pubin -in pub.pem -text
clang/go-clang-compdb
go-clang-compdb dumps the content of a clang compilation database
go-clang-compdb dumps the content of a clang compilation database
clang/go-clang-dump
go-clang-dump shows how to dump the AST of a C/C++ file via the Cursor visitor API.
go-clang-dump shows how to dump the AST of a C/C++ file via the Cursor visitor API.
config
main package demonstrates the usage of the multiconfig package
main package demonstrates the usage of the multiconfig package
fsm
gin
go-swagger/restapi
Package restapi To Do List To do list desc Schemes: http https Host: localhost BasePath: / Version: 0.1.0 Consumes: - application/json Produces: - application/json swagger:meta
Package restapi To Do List To do list desc Schemes: http https Host: localhost BasePath: / Version: 0.1.0 Consumes: - application/json Produces: - application/json swagger:meta
goc2p/helper/ds
Show the specified directory structure
Show the specified directory structure
goc2p/helper/pds
Show the dependency structure of specified package
Show the dependency structure of specified package
gopl/ch01/dup1
Dup1 prints the text of each line that appears more than once in the standard input, preceded by its count.
Dup1 prints the text of each line that appears more than once in the standard input, preceded by its count.
gopl/ch01/dup2
Dup2 prints the count and text of lines that appear more than once in the input.
Dup2 prints the count and text of lines that appear more than once in the input.
gopl/ch01/dup3
Dup3 prints the count and text of lines that appear more than once in the named input files.
Dup3 prints the count and text of lines that appear more than once in the named input files.
gopl/ch01/echo1
Echo1 prints its command-line arguments.
Echo1 prints its command-line arguments.
gopl/ch01/echo2
Echo2 prints its command-line arguments.
Echo2 prints its command-line arguments.
gopl/ch01/echo3
Echo3 prints its command-line arguments.
Echo3 prints its command-line arguments.
gopl/ch01/fetch
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
gopl/ch01/fetch-copy
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
gopl/ch01/fetchall
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
gopl/ch01/fetchall-body
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
gopl/ch01/lissajous
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
gopl/ch01/server1
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
gopl/ch01/server2
Server2 is a minimal "echo" and counter server.
Server2 is a minimal "echo" and counter server.
gopl/ch01/server3
Server3 is an "echo" server that displays request parameters.
Server3 is an "echo" server that displays request parameters.
gopl/ch02/boiling
Boiling prints the boiling point of water.
Boiling prints the boiling point of water.
gopl/ch02/cf
Cf converts its numeric argument to Celsius and Fahrenheit.
Cf converts its numeric argument to Celsius and Fahrenheit.
gopl/ch02/echo4
Echo4 prints its command-line arguments.
Echo4 prints its command-line arguments.
gopl/ch02/ftoc
Ftoc prints two Fahrenheit-to-Celsius conversions.
Ftoc prints two Fahrenheit-to-Celsius conversions.
gopl/ch02/kelvin-tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
Package tempconv performs Celsius and Fahrenheit conversions.
gopl/ch02/popcount
(Package doc comment intentionally malformed to demonstrate golint.) !+
(Package doc comment intentionally malformed to demonstrate golint.) !+
gopl/ch02/tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
Package tempconv performs Celsius and Fahrenheit conversions.
gopl/ch02/tempconv0
Package tempconv performs Celsius and Fahrenheit temperature computations.
Package tempconv performs Celsius and Fahrenheit temperature computations.
gopl/ch03/surface
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
hex
http/http-handler
handlers.go
handlers.go
io
io/reader_writer
io.Reader 接口示例
io.Reader 接口示例
log
md5
mgo
misc/error
http://www.infoq.com/cn/articles/go-interface-talk
http://www.infoq.com/cn/articles/go-interface-talk
misc/flag
These examples demonstrate more intricate uses of the flag package.
These examples demonstrate more intricate uses of the flag package.
misc/learngoinyminutes
A package clause starts every source file.
A package clause starts every source file.
misc/mysql
数据库连接池测试 ab -c 100 -n 1000 'http://localhost:9090/pool' show processlist http://www.01happy.com/golang-mysql-demo/
数据库连接池测试 ab -c 100 -n 1000 'http://localhost:9090/pool' show processlist http://www.01happy.com/golang-mysql-demo/
misc/reflect/struct-reflect
简单使用反射提供接口对象信息 通过反射TypeOf/ValueOf/Field/NumMethod等方法获取接口对象的字段,类型和方法等信息
简单使用反射提供接口对象信息 通过反射TypeOf/ValueOf/Field/NumMethod等方法获取接口对象的字段,类型和方法等信息
misc/testing
go run -race testtrace.go
go run -race testtrace.go
okq
oo
pat
protobuf/addressbook
Package addressbook is a generated protocol buffer package.
Package addressbook is a generated protocol buffer package.
rmq
rpc
script
usr/bin/env go run $0 "$@"; exit
usr/bin/env go run $0 "$@"; exit
url
writev/tcpclient
the prototype for go-writev, https://github.com/golang/go/issues/13451
the prototype for go-writev, https://github.com/golang/go/issues/13451
writev/tcpserver
the prototype for go-writev, https://github.com/golang/go/issues/13451
the prototype for go-writev, https://github.com/golang/go/issues/13451

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL