utils

package
v0.0.0-...-fc4761b Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncMap = template.FuncMap{
	"isBuiltin":         IsBuiltin,
	"getUnderlyingType": GetUnderlyingType,
	"titleCase":         strings.Title,
	"lowerCase":         strings.ToLower,
}

Functions

func FileExists

func FileExists(filename string) bool

func GetProjectPath

func GetProjectPath(dir string) (string, error)

func GetRootImportPath

func GetRootImportPath() string

func GetTemplate

func GetTemplate(filename string) string

func GetUnderlyingType

func GetUnderlyingType(typ reflect.Type) string

func GetWorkingPath

func GetWorkingPath() (string, error)

getWorkingPath gets the current working directory

func IsBuiltin

func IsBuiltin(typ reflect.Type) bool

func RootImportPath

func RootImportPath() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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