-
Notifications
You must be signed in to change notification settings - Fork 1
/
0.0 References.go
42 lines (31 loc) · 1.07 KB
/
0.0 References.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
Very Useful
Golang Github Wiki
https://github.com/golang/go/wiki
https://github.com/go101/go101/wiki
http://devs.cloudimmunity.com/gotchas-and-common-mistakes-in-go-golang/
*/
/*
Optional Parameters or Default Values to Functions
https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
https://stackoverflow.com/questions/19612449/default-value-in-gos-method
https://stackoverflow.com/questions/36589813/how-to-provide-optional-parameters-in-go
*/
/*
Zero Values:
Variables declared without an initial value are set to their zero values:
0 for all integer types,
0.0 for floating point numbers,
false for booleans,
"" for strings,
nil for interfaces, slices, channels, maps, pointers and functions.
*/
/*
Sorting custom-defined data structures:
https://stackoverflow.com/questions/28999735/what-is-the-shortest-way-to-simply-sort-an-array-of-structs-by-arbitrary-field/42872183#42872183
*/
/*
Go Data Structures by Russ Cox
Search for Go Data Structures in Link:
https://research.swtch.com/
*/