1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2024-11-29 00:25:31 +03:00
This commit is contained in:
lesheng 2020-08-19 17:45:02 +08:00
parent ecf1b0fb1d
commit 93097b5ecf
5 changed files with 48 additions and 0 deletions

0
PRINCIPLE.md Normal file
View File

View File

@ -1,5 +1,21 @@
# Summary
* [Golang](/golang/README.md)
* []()
* [Principle](/PRINCIPLE.md)
* [SRP-Single Responsibility Principle](/principle/srp.md)
* [OCP-Open Close Principle](/principle/ocp.md)
* [LSP-Liskov Substitution Principle](/principle/lsp.md)
* [ISP-Interface Segregation Principle](/principle/isp.md)
* [DIP-Dependence Inversion Principle](/principle/dip.md)
* [DRY-Don't Repeat Yourself](/principle/dry.md)
* [KIS-Keep it Simple Stupid](/principle/kis.md)
* [You "Ain't Gonna Need It](/principle/xxx.md)
* [Law Of Demeter](/principle/lod.md)
* [Composite/Aggregate Reuse Principle CARP](/principle/crp.md)
* [Refrence](/PRINCIPLE.md)
* [software-principles](https://code.tutsplus.com/tutorials/3-key-software-principles-you-must-understand--net-25161)
* [golang-example](https://golangbyexample.com/)
* [Go Patterns](/README.md)
* [Creational Patterns](/README.md#creational-patterns)
* [Abstract Factory](/creational/abstract_factory.md)

20
golang/README.md Normal file
View File

@ -0,0 +1,20 @@
* [Byte](/goang/byte.md)
* [Word](#word)
* [BitSet](#bitset)
* [Basic Type](/golang/type-basic.md)
* [Integers](/golang/type-integers.md)
* [Floating-Point Numbers]()
* [Complex Numbers]()
* [Booleans]()
* [Strings]()
* [Constants]()
* [Aggregate Type](/golang/type-aggregate.md)
* [arry](/golang/type-aggregate-arry.md)
* [struct](/golang/type-aggregate-struct.md)
* [Reference Type](/golang/type-reference.md)
* [pointer](/golang/type-reference-pointer.md)
* [slice](/golang/type-reference-slice.md)
* [map](/golang/type-reference-map.md)
* [funcation](/golang/type-reference-funcation.md)
* [channel](/golang/type-reference-channel.md)
* [Interface Type](/golang)

0
golang/go-num-type.go Normal file
View File

12
golang/type-integers.md Normal file
View File

@ -0,0 +1,12 @@
# integer
整数用8bit、16bit、32bit、64bit表示
有符号整数分别对应int8、int16、int32、int64用补码存储。
无符号整数uint8、uint16、unint32、unint64用原码存储。
int、uint是使用最广泛的数值类型是运算效率最高的数值。在编译时确定到底是多少位。
rune是int32类型的别名表示一个Unicode(code point).
byte是uint8类型的别名强调是原始的8位bit。
uintptr(u-int-ptr):无符号整数大小不确定长用于保存指针。在unsafe package中。