Directories
¶
| Path | Synopsis |
|---|---|
|
algorithm
|
|
|
fibonacci
command
|
|
|
gcd
command
|
|
|
cgo
|
|
|
callback
command
|
|
|
cfunc
command
|
|
|
cppstaticlib
command
go run main.go
|
go run main.go |
|
simple
command
|
|
|
cipher
|
|
|
crypto
command
* 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
command
go-clang-compdb dumps the content of a clang compilation database
|
go-clang-compdb dumps the content of a clang compilation database |
|
go-clang-dump
command
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. |
|
closer
|
|
|
example
command
|
|
|
example-error
command
|
|
|
example-fatalln
command
|
|
|
example-panic
command
|
|
|
cobra
|
|
|
hello
command
|
|
|
main package demonstrates the usage of the multiconfig package
|
main package demonstrates the usage of the multiconfig package |
|
struct
command
|
|
|
crypto
|
|
|
rsa
command
|
|
|
x509
command
|
|
|
dns
|
|
|
mx
command
|
|
|
keygen
command
|
|
|
pubgen
command
|
|
|
capture
command
|
|
|
simple
command
|
|
|
wait
command
|
|
|
fetchbot
|
|
|
full
command
|
|
|
short
command
|
|
|
shortauto
command
|
|
|
filesystem
|
|
|
ls
command
|
|
|
subcommand
command
|
|
|
go-fundamental-programming
|
|
|
beego-hello
command
|
|
|
go-http
command
|
|
|
go-imap
|
|
|
client
command
|
|
|
go-micro
|
|
|
go-config
command
|
|
|
protobuf-with-grpc-in-golang
command
|
|
|
go-oryx-lib
|
|
|
http
command
|
|
|
go-swagger
|
|
|
cmd/todo-list-server
command
|
|
|
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 |
|
goavro
|
|
|
file
command
|
|
|
record
command
|
|
|
goc2p
|
|
|
basic/cgo
command
|
|
|
basic/pkginit
command
|
|
|
chan1/oneway
command
|
|
|
helper/ds
command
Show the specified directory structure
|
Show the specified directory structure |
|
helper/pds
command
Show the dependency structure of specified package
|
Show the dependency structure of specified package |
|
multiproc/apipe
command
|
|
|
multiproc/npipe
command
|
|
|
multiproc/signal
command
|
|
|
multiproc/socket
command
|
|
|
sync1/pool
command
|
|
|
webcrawler/demo
command
|
|
|
gofight
|
|
|
hello2
command
|
|
|
helloworld
command
|
|
|
gohttp
|
|
|
app/example
command
|
|
|
demo
command
|
|
|
logger
command
|
|
|
mount
command
|
|
|
pprof
command
|
|
|
serve
command
|
|
|
statsd
command
|
|
|
goji
|
|
|
json
command
|
|
|
golang-book
|
|
|
chapter10
command
|
|
|
chapter11
command
|
|
|
chapter13
command
|
|
|
chapter2
command
|
|
|
chapter3
command
|
|
|
chapter4
command
|
|
|
chapter5
command
|
|
|
chapter6
command
|
|
|
chapter7
command
|
|
|
chapter8
command
|
|
|
chapter9
command
|
|
|
golib
|
|
|
agg
command
|
|
|
gopl
|
|
|
ch01/dup1
command
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. |
|
ch01/dup2
command
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. |
|
ch01/dup2-filename
command
|
|
|
ch01/dup3
command
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. |
|
ch01/echo-time
command
|
|
|
ch01/echo1
command
Echo1 prints its command-line arguments.
|
Echo1 prints its command-line arguments. |
|
ch01/echo2
command
Echo2 prints its command-line arguments.
|
Echo2 prints its command-line arguments. |
|
ch01/echo3
command
Echo3 prints its command-line arguments.
|
Echo3 prints its command-line arguments. |
|
ch01/fetch
command
Fetch prints the content found at each specified URL.
|
Fetch prints the content found at each specified URL. |
|
ch01/fetch-copy
command
Fetch prints the content found at a URL.
|
Fetch prints the content found at a URL. |
|
ch01/fetch-prefix
command
|
|
|
ch01/fetch-status
command
|
|
|
ch01/fetchall
command
Fetchall fetches URLs in parallel and reports their times and sizes.
|
Fetchall fetches URLs in parallel and reports their times and sizes. |
|
ch01/fetchall-body
command
Fetchall fetches URLs in parallel and reports their times and sizes.
|
Fetchall fetches URLs in parallel and reports their times and sizes. |
|
ch01/helloworld
command
|
|
|
ch01/lissajous
command
Lissajous generates GIF animations of random Lissajous figures.
|
Lissajous generates GIF animations of random Lissajous figures. |
|
ch01/lissajous-query
command
|
|
|
ch01/server1
command
Server1 is a minimal "echo" server.
|
Server1 is a minimal "echo" server. |
|
ch01/server2
command
Server2 is a minimal "echo" and counter server.
|
Server2 is a minimal "echo" and counter server. |
|
ch01/server3
command
Server3 is an "echo" server that displays request parameters.
|
Server3 is an "echo" server that displays request parameters. |
|
ch02/boiling
command
Boiling prints the boiling point of water.
|
Boiling prints the boiling point of water. |
|
ch02/cf
command
Cf converts its numeric argument to Celsius and Fahrenheit.
|
Cf converts its numeric argument to Celsius and Fahrenheit. |
|
ch02/echo4
command
Echo4 prints its command-line arguments.
|
Echo4 prints its command-line arguments. |
|
ch02/ftoc
command
Ftoc prints two Fahrenheit-to-Celsius conversions.
|
Ftoc prints two Fahrenheit-to-Celsius conversions. |
|
ch02/kelvin-tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
|
Package tempconv performs Celsius and Fahrenheit conversions. |
|
ch02/namespace
command
|
|
|
ch02/popcount
(Package doc comment intentionally malformed to demonstrate golint.) !+
|
(Package doc comment intentionally malformed to demonstrate golint.) !+ |
|
ch02/tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
|
Package tempconv performs Celsius and Fahrenheit conversions. |
|
ch02/tempconv0
Package tempconv performs Celsius and Fahrenheit temperature computations.
|
Package tempconv performs Celsius and Fahrenheit temperature computations. |
|
ch03/ex3.1
command
|
|
|
ch03/ex3.2
command
|
|
|
ch03/ex3.3
command
|
|
|
ch03/ex3.4
command
|
|
|
ch03/surface
command
Surface computes an SVG rendering of a 3-D surface function.
|
Surface computes an SVG rendering of a 3-D surface function. |
|
consistenthash
command
|
|
|
lru
command
|
|
|
singlefight
command
|
|
|
file
command
|
|
|
fileserv
command
|
|
|
fileupload
command
|
|
|
handlefunc
command
|
|
|
handler
command
|
|
|
handler/example
command
|
|
|
http-context
command
|
|
|
http-handler
handlers.go
|
handlers.go |
|
httptest/response-recorder
command
|
|
|
httptest/server
command
|
|
|
httputil/dump-request
command
|
|
|
httputil/dump-request-out
command
|
|
|
httputil/dump-response
command
|
|
|
httputil/reverse-proxy
command
|
|
|
middleware
command
|
|
|
middleware/append-data
command
|
|
|
middleware/modify-mid
command
|
|
|
middleware/simple
command
|
|
|
middleware/simple1
command
|
|
|
mux
command
|
|
|
post
command
|
|
|
simple
command
|
|
|
strip-prefix
command
|
|
|
transport
command
|
|
|
http-api
|
|
|
todo
command
|
|
|
reader_writer
command
io.Reader 接口示例
|
io.Reader 接口示例 |
|
jose
|
|
|
claims
command
|
|
|
gentoken
command
|
|
|
parsetoken
command
|
|
|
validtoken
command
|
|
|
jwt
|
|
|
go-jwt-middleware
command
|
|
|
jwtauth
command
|
|
|
web
command
|
|
|
kcp
|
|
|
client
command
|
|
|
server
command
|
|
|
complete
command
|
|
|
handlers
command
|
|
|
httpauth
command
|
|
|
strip-prefix
command
|
|
|
timeout-handler
command
|
|
|
misc
|
|
|
array
command
|
|
|
bitop
command
|
|
|
bool
command
|
|
|
break
command
|
|
|
call_so
command
|
|
|
cgo
command
|
|
|
cgo/call_so
command
|
|
|
cgo/src
command
|
|
|
channel
command
|
|
|
channel/close-chan
command
|
|
|
channel/quiz
command
|
|
|
closure
command
|
|
|
complex_value
command
|
|
|
const
command
|
|
|
error
command
http://www.infoq.com/cn/articles/go-interface-talk
|
http://www.infoq.com/cn/articles/go-interface-talk |
|
exception
command
|
|
|
flag
command
These examples demonstrate more intricate uses of the flag package.
|
These examples demonstrate more intricate uses of the flag package. |
|
flag/simple
command
|
|
|
flag/visit
command
|
|
|
float_value
command
|
|
|
for
command
|
|
|
func
command
|
|
|
glog
command
|
|
|
goroutine
command
|
|
|
goto
command
|
|
|
helloworld
command
|
|
|
http
command
|
|
|
httptest
command
|
|
|
if
command
|
|
|
image/draw
command
|
|
|
image/simple
command
|
|
|
import/dot
command
|
|
|
import/underscore
command
|
|
|
init
command
|
|
|
int
command
|
|
|
int_value
command
|
|
|
interface
command
|
|
|
json
command
|
|
|
json/marshal
command
|
|
|
json/simple
command
|
|
|
json/unmarshal
command
|
|
|
learngoinyminutes
command
A package clause starts every source file.
|
A package clause starts every source file. |
|
log
command
|
|
|
log/log-format
command
|
|
|
log/simple
command
|
|
|
log/syslog
command
|
|
|
map
command
|
|
|
math
command
|
|
|
memory
command
|
|
|
multi_args
command
|
|
|
mysql
command
数据库连接池测试 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/ |
|
oo
command
|
|
|
operator
command
|
|
|
panic
command
|
|
|
pid
command
|
|
|
pointer
command
|
|
|
pool
command
|
|
|
range
command
|
|
|
recursive
command
|
|
|
reflect/call-method
command
|
|
|
reflect/callfunc
command
|
|
|
reflect/chan
command
|
|
|
reflect/convert
command
|
|
|
reflect/func-reflect
command
|
|
|
reflect/hello
command
|
|
|
reflect/set
command
|
|
|
reflect/set-reflect
command
|
|
|
reflect/set-value
command
|
|
|
reflect/struct-reflect
command
简单使用反射提供接口对象信息 通过反射TypeOf/ValueOf/Field/NumMethod等方法获取接口对象的字段,类型和方法等信息
|
简单使用反射提供接口对象信息 通过反射TypeOf/ValueOf/Field/NumMethod等方法获取接口对象的字段,类型和方法等信息 |
|
reflect/struct-tag
command
|
|
|
reflect/template/extends
command
|
|
|
reflect/template/parsefiles
command
|
|
|
reflect/template/parseglob
command
|
|
|
reflect/type-value-of
command
|
|
|
reflect/unknown-type
command
|
|
|
reflect/value
command
|
|
|
rune
command
|
|
|
runtime
command
|
|
|
select
command
|
|
|
signal
command
|
|
|
slice/slice_secure
command
|
|
|
sort
command
|
|
|
strconv
command
|
|
|
string
command
|
|
|
strings
command
|
|
|
struct
command
|
|
|
struct_method
command
|
|
|
struct_tag
command
|
|
|
switch
command
|
|
|
sync/map
command
|
|
|
tabwriter
command
|
|
|
testing
command
go run -race testtrace.go
|
go run -race testtrace.go |
|
type
command
|
|
|
typeof
command
|
|
|
value
command
|
|
|
varargs
command
|
|
|
variable
command
|
|
|
xml
command
|
|
|
mock
|
|
|
msgp
|
|
|
gen
command
|
|
|
stack
command
|
|
|
network
|
|
|
ip
command
|
|
|
tcp
command
|
|
|
tcp/conn-establish
command
|
|
|
tcp/tcpsock
command
|
|
|
tcpperf
command
|
|
|
udp
command
|
|
|
nsq
|
|
|
cert
command
|
|
|
complex/consumer
command
|
|
|
complex/producer
command
|
|
|
simple/consumer
command
|
|
|
simple/producer
command
|
|
|
plugin
|
|
|
greeter
command
|
|
|
greeter/en
command
|
|
|
greeter/zh
command
|
|
|
pq
|
|
|
bookstore
command
|
|
|
bookstore-web
command
|
|
|
protobuf
|
|
|
add-people
command
|
|
|
addressbook
Package addressbook is a generated protocol buffer package.
|
Package addressbook is a generated protocol buffer package. |
|
list-people
command
|
|
|
proxy-get
command
|
|
|
simple-proxy
command
|
|
|
single-host
command
|
|
|
recordstore
command
|
|
|
rtmp
|
|
|
usr/bin/env go run $0 "$@"; exit
|
usr/bin/env go run $0 "$@"; exit |
|
sql
|
|
|
mysql
command
|
|
|
swig
|
|
|
simple
command
|
|
|
testify
|
|
|
mock/example
command
|
|
|
mock/pure
command
|
|
|
testing
|
|
|
http
command
|
|
|
format
command
|
|
|
timeout
command
|
|
|
simple
command
|
|
|
websocket
|
|
|
cli
command
|
|
|
simple
command
|
|
|
websocket-chat
command
|
|
|
writev
|
|
|
tcpclient
command
the prototype for go-writev, https://github.com/golang/go/issues/13451
|
the prototype for go-writev, https://github.com/golang/go/issues/13451 |
|
tcpserver
command
the prototype for go-writev, https://github.com/golang/go/issues/13451
|
the prototype for go-writev, https://github.com/golang/go/issues/13451 |
|
xlsx
|
|
|
read
command
|
|
|
xorm
|
|
|
advanced
command
|
|
|
bigint
command
|
|
|
simple
command
|
|
Click to show internal directories.
Click to hide internal directories.