models

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	// contains filtered or unexported fields
}

Field represents a single field in a struct.

func (Field) String

func (f Field) String() string

type File

type File struct {
	// contains filtered or unexported fields
}

File holds a single parsed file and associated data.

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator holds the state of the analysis. Primarily used to buffer the output for format.Source.

func (*Generator) Format

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

Format returns the gofmt-ed contents of the Generator's buffer.

func (*Generator) Generate

func (g *Generator) Generate(typeName string)

Generate

func (*Generator) ParsePackage

func (g *Generator) ParsePackage(patterns []string, tags []string) *Package

ParsePackage analyzes the single package constructed from the patterns and tags. ParsePackage exits if there is an error.

func (*Generator) Printf

func (g *Generator) Printf(format string, args ...interface{})

Printf prints the string to the output

type Package

type Package struct {
	// contains filtered or unexported fields
}

Package holds information about a Go package

func (Package) Name

func (p Package) Name() string

Name returns the name of the package

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL