Add 'go-cheatsheet.md'
This commit is contained in:
parent
9ae75dccba
commit
238822dc81
16
go-cheatsheet.md
Normal file
16
go-cheatsheet.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# go (golang) cheatsheet
|
||||||
|
|
||||||
|
## testing
|
||||||
|
|
||||||
|
``` go
|
||||||
|
t.Logf("%#v", eim)
|
||||||
|
```
|
||||||
|
|
||||||
|
Outputs types with keys, viz:
|
||||||
|
|
||||||
|
```
|
||||||
|
inner_test.go:17: &message.InnerMessage{
|
||||||
|
ours:(*message.InnerJSONStruct)(nil),
|
||||||
|
dstPubKey:(*cbk.CryptoBoxKey)(nil),
|
||||||
|
srcPrivKey:(*cbk.CryptoBoxKey)(nil)}
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user