Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
jennifer
✓ github.com/dave/jennifer
Generate a simple Go file
package main
import (
"fmt"
"github.com/dave/jennifer/jen"
)
func main() {
f := jen.NewFile("main")
f.Func().Id("main").Params().Block(
jen.Qual("fmt", "Println").Call(jen.Lit("Hello, world!")),
)
fmt.Printf("%#v", f)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.7.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.