16 lines
287 B
Markdown
16 lines
287 B
Markdown
|
# 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)}
|
||
|
```
|