godoc tweak
This commit is contained in:
parent
7ce6c7c972
commit
a74293e4ba
8
Makefile
8
Makefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue