MUST NOT BE EDITED BY HAND * * Install goexportdefault with: * go get github.com/ernesto-jimenez/gogen/cmd/goexportdefault */ package example import () // Do is a wrapper around DefaultClient.Do func Do(p0 interface{}) error { return DefaultClient.Do(p0) }
method from *testpkg.Nested out of date. regenerate the code FAIL FAIL github.com/ernesto-jimenez/gogen/unmarshalmap/testpkg 0.010s $ go generate ./unmarshalmap/testpkg Generating func (*Nested) UnmarshalMap(map[string]interface{}) error $ go test ./unmarshalmap/testpkg ok github.com/ernesto-jimenez/gogen/unmarshalmap/testpkg 0.009s
_ = API("adder", func() { Title("The adder API") Description("A teaser for goa") Host("localhost:8080") Scheme("http") }) var _ = Resource("operands", func() { Action("add", func() { Routing(GET("add/:left/:right")) Description("add returns the sum of the left and right parameters in the response body") Params(func() { Param("left", Integer, "Left operand") Param("right", Integer, "Right operand") }) Response(OK, "plain/text") }) })
_ = API("adder", func() { Title("The adder API") Description("A teaser for goa") Host("localhost:8080") Scheme("http") }) var _ = Resource("operands", func() { Action("add", func() { Routing(GET("add/:left/:right")) Description("add returns the sum of the left and right parameters in the response body") Params(func() { Param("left", Integer, "Left operand") Param("right", Integer, "Right operand") }) Response(OK, "plain/text") }) })
) func main() { // Check if there were errors while running the first DSL pass dslengine.FailOnError(dslengine.Errors) // Now run the secondary DSLs dslengine.FailOnError(dslengine.Run()) files, err := genapp.Generate() dslengine.FailOnError(err) // We're done fmt.Println(strings.Join(files, "\n")) }