hep: go-hep.org/x/hep/brio/cmd/brio-gen/internal/gen Index | Files

package gen

import "go-hep.org/x/hep/brio/cmd/brio-gen/internal/gen"


Package Files


type Generator Uses

type Generator struct {
    Verbose bool // enable verbose mode
    // contains filtered or unexported fields

Generator holds the state of the generation.

func NewGenerator Uses

func NewGenerator(p string) (*Generator, error)

NewGenerator returns a new code generator for package p, where p is the package's import path.

func (*Generator) Format Uses

func (g *Generator) Format() ([]byte, error)

func (*Generator) Generate Uses

func (g *Generator) Generate(typeName string)

Package gen imports 7 packages (graph) and is imported by 1 packages. Updated 2019-07-06. Refresh now. Tools for package owners.