godoc tweak

This commit is contained in:
Jae Kwon
2018-01-20 15:03:57 -08:00
parent 7ce6c7c972
commit a74293e4ba
2 changed files with 13 additions and 7 deletions
+8
View File
@@ -38,6 +38,14 @@ draw_deps:
@goviz -i github.com/tendermint/tendermint/cmd/tendermint -d 3 | dot -Tpng -o dependency-graph.png
########################################
### Documentation
godocs:
@echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/cosmos/cosmos-sdk/types"
godoc -http=:6060
########################################
### Testing
+5 -7
View File
@@ -16,13 +16,11 @@ The intent of Context is for it to be an immutable object that can be
cloned and updated cheaply with WithValue() and passed forward to the
next decorator or handler. For example,
```golang
func MsgHandler(ctx Context, tx Tx) Result {
...
ctx = ctx.WithValue(key, value)
...
}
```
func MsgHandler(ctx Context, tx Tx) Result {
...
ctx = ctx.WithValue(key, value)
...
}
*/
type Context struct {
context.Context