Add 'go-cheatsheet.md'

This commit is contained in:
Jeffrey Paul 2020-10-05 09:56:03 +00:00
parent 9ae75dccba
commit 238822dc81
1 changed files with 16 additions and 0 deletions

16
go-cheatsheet.md Normal file
View 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)}
```