github.com/ipld/go-ipld-prime@v0.21.0/node/gendemo/doc.go (about) 1 // The gendemo package contains some what codegen output code, 2 // so that it can demonstrate what schema-based codegen looks and acts like. 3 // 4 // The main purpose is to benchmark things, 5 // and to provide an easy-to-look-at _thing_ for prospective users 6 // who want to lay eyes on generated code without needing to get up-and-running with the generator themselves. 7 // 8 // This package is absolutely _not_ full of general purpose node implementations 9 // that you should use in _any_ application. 10 // 11 // The input info for the code generation is in `gen.go` file. 12 // (This is currently wired directly in code; in the future, the same instructions 13 // will be extracted to an IPLD Schema file and standard tools will be used to process it.) 14 // The code generation is triggered by `go:generate` comments in the `doc.go` file. 15 16 //go:generate go run gen.go 17 18 package gendemo