demo

module
v0.0.0-...-b5285df Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0

README

demo

some demo

about linux golang etc.

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/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/enum command
枚举,一组预定义好的值 需要遍历,获取和校验,容易扩展 一般用于特定范围的变量
枚举,一组预定义好的值 需要遍历,获取和校验,容易扩展 一般用于特定范围的变量
memo/escape command
memo/fmtstr command
memo/forrange command
memo/fun command
memo/func/embed command
memo/func/pass_value command
Go 里面的函数传参都是值
Go 里面的函数传参都是值
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/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/interfaceprivate command
接口的私有方法是否需要继承
接口的私有方法是否需要继承
memo/intfassert command
memo/jgo command
memo/json command
memo/len command
memo/lockpanic 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
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/bufio command
stdlib/bytes command
stdlib/context command
stdlib/crypto command
stdlib/debug/pe command
stdlib/encoding command
stdlib/errors command
stdlib/expvar command
stdlib/flag command
stdlib/fmt command
stdlib/go/ast command
stdlib/go/build command
stdlib/go/doc command
stdlib/go/token command
stdlib/go/types command
stdlib/hash command
stdlib/hash/fnv command
stdlib/html command
stdlib/image command
stdlib/io command
流处理示例
流处理示例
stdlib/log command
stdlib/math command
stdlib/math/big command
stdlib/mime command
stdlib/net command
stdlib/net/http command
struct/embed command
structcompose 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
t
go_type_alias command

Jump to

Keyboard shortcuts

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