Directories
¶
| Path | Synopsis |
|---|---|
|
股票每天的价格是arr(这是一个列表),你会选择1天买入股票,选之后的另外1天卖出,所以需要一个函数在这种操作下可以把利润最大化 如:arr = [7,1,5,3,6,4]
|
股票每天的价格是arr(这是一个列表),你会选择1天买入股票,选之后的另外1天卖出,所以需要一个函数在这种操作下可以把利润最大化 如:arr = [7,1,5,3,6,4] |
|
algorithm_datastructure
|
|
|
binarysearchtree
Package binarysearchtree 非平衡二分搜索树
|
Package binarysearchtree 非平衡二分搜索树 |
|
queen
command
|
|
|
cache
|
|
|
update
command
缓存更新的几种策略
|
缓存更新的几种策略 |
|
docker
|
|
|
simple
command
实现一个简单容器
|
实现一个简单容器 |
|
介绍 https://yuerblog.cc/2017/12/10/principle-about-etcd-v3/ http://www.infoq.com/cn/articles/etcd-interpretation-application-scenario-implement-principle
|
介绍 https://yuerblog.cc/2017/12/10/principle-about-etcd-v3/ http://www.infoq.com/cn/articles/etcd-interpretation-application-scenario-implement-principle |
|
golang
|
|
|
generic
command
|
|
|
label
command
|
|
|
link_call
command
|
|
|
memo/abcd
command
|
|
|
memo/array
command
|
|
|
memo/assemble
command
生成汇编文件
|
生成汇编文件 |
|
memo/assemble/plan9/math
command
|
|
|
memo/assemble/plan9/output
command
|
|
|
memo/assemble/plan9/spspfp
command
|
|
|
memo/ast
command
|
|
|
memo/big_file_sort
command
大文件内容排序
|
大文件内容排序 |
|
memo/bit
command
位运算
|
位运算 |
|
memo/break
command
|
|
|
memo/bufio
command
reader.ReadLine 会使用 bufio.Reader.buf 字段,因此在调用多一次 ReadLine 后,前面的 a 变量会被后面的 b 变量覆盖
|
reader.ReadLine 会使用 bufio.Reader.buf 字段,因此在调用多一次 ReadLine 后,前面的 a 变量会被后面的 b 变量覆盖 |
|
memo/channel/one_wite_two_read
command
一个管道写,两个管道读,谁先读到呢 看标准库 database/sql sql.go
|
一个管道写,两个管道读,谁先读到呢 看标准库 database/sql sql.go |
|
memo/channel/why_zero_value_is_nil
command
为什么 chan 的零值是 nil ? https://medium.com/justforfunc/why-are-there-nil-channels-in-go-9877cc0b2308 结合 空对象模式 理解,让零值也有意义 源码:https://github.com/campoy/justforfunc/blob/master/26-nil-chans/main.go
|
为什么 chan 的零值是 nil ? https://medium.com/justforfunc/why-are-there-nil-channels-in-go-9877cc0b2308 结合 空对象模式 理解,让零值也有意义 源码:https://github.com/campoy/justforfunc/blob/master/26-nil-chans/main.go |
|
memo/check
command
|
|
|
memo/closure/variable
command
哪些类型的变量值会随时间改变呢
|
哪些类型的变量值会随时间改变呢 |
|
memo/colly
command
|
|
|
memo/confused
command
|
|
|
memo/const
command
|
|
|
memo/constslice
command
|
|
|
memo/deadlock
command
|
|
|
memo/decoration
command
修饰器
|
修饰器 |
|
memo/defer
command
|
|
|
memo/doc
this is doc.go
|
this is doc.go |
|
memo/duplicate
command
|
|
|
memo/embedinterface
command
|
|
|
memo/enum
command
枚举,一组预定义好的值 需要遍历,获取和校验,容易扩展 一般用于特定范围的变量
|
枚举,一组预定义好的值 需要遍历,获取和校验,容易扩展 一般用于特定范围的变量 |
|
memo/escape
command
|
|
|
memo/fmtstr
command
|
|
|
memo/forrange
command
|
|
|
memo/forrange/range
command
|
|
|
memo/fun
command
|
|
|
memo/func/embed
command
|
|
|
memo/func/pass_value
command
Go 里面的函数传参都是值
|
Go 里面的函数传参都是值 |
|
memo/func/vardefine
command
|
|
|
memo/gif
command
|
|
|
memo/go-gc
command
For gc test
|
For gc test |
|
memo/go1.10
command
go1.10的变动
|
go1.10的变动 |
|
memo/go1.9
command
|
|
|
memo/gointerview
command
使用panic和recover编写一个不包含return语句但能返回一个非零值的函数
|
使用panic和recover编写一个不包含return语句但能返回一个非零值的函数 |
|
memo/gotrace
command
|
|
|
memo/grmon
command
wsl 无法使用 grmon 监控,必须使用 ubuntu 虚拟机
|
wsl 无法使用 grmon 监控,必须使用 ubuntu 虚拟机 |
|
memo/handler/interface
command
|
|
|
memo/handler/reflect
command
|
|
|
memo/heap
command
This example demonstrates an integer heap built using the heap interface.
|
This example demonstrates an integer heap built using the heap interface. |
|
memo/hmac
command
|
|
|
memo/insertsort
command
|
|
|
memo/int_size
command
int 和 uint 的长度,4字节,还是8字节呢?
|
int 和 uint 的长度,4字节,还是8字节呢? |
|
memo/interface
command
|
|
|
memo/interface/lower/main
command
|
|
|
memo/interface_map_assert
command
|
|
|
memo/interfaceprivate
command
接口的私有方法是否需要继承
|
接口的私有方法是否需要继承 |
|
memo/intfassert
command
|
|
|
memo/jgo
command
|
|
|
memo/json
command
|
|
|
memo/len
command
|
|
|
memo/lockpanic
command
|
|
|
memo/makesqlfile
command
|
|
|
memo/mapfun
command
|
|
|
memo/memoryleak
command
From https://lingchao.xin/post/memory-leaking.html
|
From https://lingchao.xin/post/memory-leaking.html |
|
memo/multi_dimensional
command
多维切片
|
多维切片 |
|
memo/mutex
command
|
|
|
memo/quicksort
command
|
|
|
memo/slice
command
|
|
|
net
command
|
|
|
nil
command
nil is 0x0
|
nil is 0x0 |
|
nilpointer
command
|
|
|
noinherit
command
|
|
|
nullptr
command
|
|
|
oneprocs
command
|
|
|
open_same_file
command
|
|
|
option
command
调用方
|
调用方 |
|
option/option
Package option 提供方 这种用法可以在确保 NewServer 不变的同时,保证扩展性
|
Package option 提供方 这种用法可以在确保 NewServer 不变的同时,保证扩展性 |
|
otherlib/boltdb
command
|
|
|
otherlib/jbindata
command
|
|
|
override
command
|
|
|
panic
command
|
|
|
plugin
command
|
|
|
plugin/ch
command
|
|
|
plugin/en
command
|
|
|
pointer
command
|
|
|
power
command
|
|
|
rabin-karp
command
|
|
|
reflect
command
|
|
|
reflect/equal
command
|
|
|
reflect/type
command
|
|
|
relativeimport
command
|
|
|
return
command
|
|
|
rpc
command
|
|
|
rpc/client
command
|
|
|
select
command
|
|
|
server
command
|
|
|
shutdown
command
优雅重启测试
|
优雅重启测试 |
|
stdlib/archive/tar
command
|
|
|
stdlib/archive/zip
command
|
|
|
stdlib/bufio
command
|
|
|
stdlib/bytes
command
|
|
|
stdlib/compress/bzip2
command
|
|
|
stdlib/compress/flate
command
|
|
|
stdlib/compress/gzip
command
|
|
|
stdlib/compress/lzw
command
|
|
|
stdlib/compress/zlib
command
|
|
|
stdlib/container/heap
command
|
|
|
stdlib/container/list
command
|
|
|
stdlib/container/ring
command
|
|
|
stdlib/context
command
|
|
|
stdlib/crypto
command
|
|
|
stdlib/crypto/aes
command
|
|
|
stdlib/crypto/cipher
command
|
|
|
stdlib/crypto/des
command
|
|
|
stdlib/crypto/dsa
command
|
|
|
stdlib/crypto/ecdsa
command
|
|
|
stdlib/crypto/elliptic
command
|
|
|
stdlib/crypto/hmac
command
|
|
|
stdlib/crypto/md5
command
|
|
|
stdlib/crypto/rand
command
|
|
|
stdlib/crypto/rc4
command
|
|
|
stdlib/crypto/rsa
command
|
|
|
stdlib/crypto/sha1
command
|
|
|
stdlib/crypto/sha256
command
|
|
|
stdlib/crypto/sha512
command
|
|
|
stdlib/crypto/subtle
command
|
|
|
stdlib/crypto/tls
command
|
|
|
stdlib/crypto/x509
command
|
|
|
stdlib/crypto/x509/pkix
command
|
|
|
stdlib/database/sql
command
|
|
|
stdlib/debug/dwarf
command
|
|
|
stdlib/debug/elf
command
|
|
|
stdlib/debug/gosym
command
|
|
|
stdlib/debug/macho
command
|
|
|
stdlib/debug/pe
command
|
|
|
stdlib/debug/plan9obj
command
|
|
|
stdlib/encoding
command
|
|
|
stdlib/encoding/ascii85
command
|
|
|
stdlib/encoding/asn1
command
|
|
|
stdlib/encoding/base32
command
|
|
|
stdlib/encoding/base64
command
|
|
|
stdlib/encoding/binary
command
|
|
|
stdlib/encoding/csv
command
|
|
|
stdlib/encoding/gob
command
|
|
|
stdlib/encoding/hex
command
|
|
|
stdlib/encoding/json
command
|
|
|
stdlib/encoding/pem
command
|
|
|
stdlib/encoding/xml
command
|
|
|
stdlib/errors
command
|
|
|
stdlib/expvar
command
|
|
|
stdlib/flag
command
|
|
|
stdlib/fmt
command
|
|
|
stdlib/go/ast
command
|
|
|
stdlib/go/build
command
|
|
|
stdlib/go/constant
command
|
|
|
stdlib/go/doc
command
|
|
|
stdlib/go/format
command
|
|
|
stdlib/go/importer
command
|
|
|
stdlib/go/parser
command
|
|
|
stdlib/go/printer
command
|
|
|
stdlib/go/scanner
command
|
|
|
stdlib/go/token
command
|
|
|
stdlib/go/types
command
|
|
|
stdlib/hash
command
|
|
|
stdlib/hash/adler32
command
|
|
|
stdlib/hash/crc32
command
|
|
|
stdlib/hash/crc64
command
|
|
|
stdlib/hash/fnv
command
|
|
|
stdlib/html
command
|
|
|
stdlib/html/template
command
|
|
|
stdlib/image
command
|
|
|
stdlib/index/suffixarray
command
|
|
|
stdlib/io
command
流处理示例
|
流处理示例 |
|
stdlib/io/ioutil
command
|
|
|
stdlib/log
command
|
|
|
stdlib/log/syslog
command
|
|
|
stdlib/math
command
|
|
|
stdlib/math/big
command
|
|
|
stdlib/math/bits
command
|
|
|
stdlib/math/cmplx
command
|
|
|
stdlib/math/rand
command
|
|
|
stdlib/mime
command
|
|
|
stdlib/mime/multipart
command
|
|
|
stdlib/mime/quotedprintable
command
|
|
|
stdlib/net
command
|
|
|
stdlib/net/http
command
|
|
|
struct/embed
command
|
|
|
struct/pointer_field
command
|
|
|
structcompose
command
|
|
|
structembedinterface
command
|
|
|
template/html
command
|
|
|
testjson
command
|
|
|
unit
command
|
|
|
utf8
command
|
|
|
value_return
command
|
|
|
webp
command
|
|
|
worker
command
|
|
|
linux
|
|
|
kernel
command
|
|
|
kernel/fork
command
|
|
|
process/multi
command
|
|
|
protocol
|
|
|
HTTP/tunnel/client
command
|
|
|
HTTP/tunnel/server
command
|
|
|
go_type_alias
command
|
|
Click to show internal directories.
Click to hide internal directories.