Skip to content

Commit 93097b5

Browse files
author
lesheng
committed
md
1 parent ecf1b0f commit 93097b5

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed

PRINCIPLE.md

Whitespace-only changes.

SUMMARY.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Summary
22

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

golang/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
* [Byte](/goang/byte.md)
2+
* [Word](#word)
3+
* [BitSet](#bitset)
4+
* [Basic Type](/golang/type-basic.md)
5+
* [Integers](/golang/type-integers.md)
6+
* [Floating-Point Numbers]()
7+
* [Complex Numbers]()
8+
* [Booleans]()
9+
* [Strings]()
10+
* [Constants]()
11+
* [Aggregate Type](/golang/type-aggregate.md)
12+
* [arry](/golang/type-aggregate-arry.md)
13+
* [struct](/golang/type-aggregate-struct.md)
14+
* [Reference Type](/golang/type-reference.md)
15+
* [pointer](/golang/type-reference-pointer.md)
16+
* [slice](/golang/type-reference-slice.md)
17+
* [map](/golang/type-reference-map.md)
18+
* [funcation](/golang/type-reference-funcation.md)
19+
* [channel](/golang/type-reference-channel.md)
20+
* [Interface Type](/golang)

golang/go-num-type.go

Whitespace-only changes.

golang/type-integers.md

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

0 commit comments

Comments
 (0)