util

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrorsWithExit added in v0.13.1

func CheckErrorsWithExit(errs []error)

CheckErrorsWithExit is used in several places to bail out after a compilation that contains failures.

func GetAllOKFilesInPath

func GetAllOKFilesInPath(dir string, includeTests bool) ([]string, error)

GetAllOKFilesInPath non-recursively returns a list of OK files.

func IsPublic

func IsPublic(funcName string) bool

IsPublic returns true if a function name is visible outside of a package.

func PackageNameFromPath added in v0.14.2

func PackageNameFromPath(baseDir, packagePath string) string

PackageNameFromPath returns the full package name from a path compared to its base directory.

The baseDir and packagePath may be relative or absolute. If baseDir is empty, then the current working directory is used.

func Render added in v0.13.0

func Render(f io.Writer, x interface{}, indent string, vmPackage bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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