parser

package
v0.0.0-...-36bac1a Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2015 License: Apache-2.0 Imports: 11 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
	// contains filtered or unexported fields
}

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

func ParsePackage

func ParsePackage(directory, skipPrefix, skipSuffix 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