diff --git a/Makefile b/Makefile index f39563f4da..eb98381e2b 100644 --- a/Makefile +++ b/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 diff --git a/types/context.go b/types/context.go index a84c6ca989..eaef3f76c8 100644 --- a/types/context.go +++ b/types/context.go @@ -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