source

package
v0.0.0-...-17c0c07 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Limited support for parsing Go source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindConstantValue

func FindConstantValue(f *ast.File, name string, isVerbose bool) *ast.BasicLit

func FindMainDirs

func FindMainDirs(root string, excludingGlobs []string, isVerbose bool) ([]string, error)

func FindSourceDirs

func FindSourceDirs(root string, packageNameFilter string, excludingGlobs []string, isVerbose bool) ([]string, error)

func FindValue

func FindValue(f *ast.File, name string, toks []token.Token, isVerbose bool) *ast.BasicLit

TODO: refactor to more idiomatic version of this (e.g. use Visit?)

func LoadFiles

func LoadFiles(filenames []string) ([]*ast.File, error)

func LoadFilesMap

func LoadFilesMap(filenames []string) (map[string]*ast.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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