docs/go-cheatsheet.md

16 lines
287 B
Markdown
Raw Normal View History

2020-10-05 09:56:03 +00:00
# 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)}
```