Mirror of https://github.com/cue-lang/cue cuelang.org
cue go

encoding: add godoc hints for cue/ast result types master

For each public API that returns an ast.File or ast.Expr, give a hint to the user in terms of what they likely want to do with it. Otherwise it's difficult to guess that they need cue.Context.BuildExpr, given that it lives in a different package and is not a top-level func. While here, do very minor tweaks as well, like linkifying io.EOF. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Idf23ea15e306fc845d8e24e41a92c31e7582bbc5 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1233277 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Paul Jolly <paul@myitcv.io>


+25 -4
8 changed files