handler

package
v0.0.0-...-5db323b Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkPackage

func WalkPackage(pkg *ast.Package, pat *regexp.Regexp) []*ast.TypeSpec

WalkPackage filters out all the struct type spec given the pattern from the package

Types

type GenResult

type GenResult struct {
	Comment *ast.CommentGroup
	Decl    ast.Decl
	Name    string
}

GenResult stores ast and comment generated from the struct

func GenFromStructType

func GenFromStructType(prefix string, tspec *ast.TypeSpec,
	typeAlias string) ([]*GenResult, error)

GenFromStructType generates ast and comment given the struct

Jump to

Keyboard shortcuts

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