parser

package
v0.0.0-...-ab287f9 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package parser parses Go code and keeps track of all the types defined and provides access to all the constants defined for an int type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name string
	Path string
	// contains filtered or unexported fields
}

A Package contains all the information related to a parsed package.

func ParsePackage

func ParsePackage(args []string) (*Package, error)

ParsePackage parses the package in the given directory and returns it.

func (*Package) ValuesOfType

func (pkg *Package) ValuesOfType(typeName string) ([]string, error)

generate produces the String method for the named type.

Jump to

Keyboard shortcuts

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