General error messages for ZYLISP
const ( // Files and Directories Errors DirectoryError string = "There was a problem accessing directory %s: %s" DirectoryCreationError string = "There was a problem creating directory %s: %s" // Implementation Errors NotImplementedError string = "Not implemented yet" // Unsupported Errors LogLevelUnsupportedError string = "The provided logging level is not supported" )
Primary constants for ZYLISP
const ( ApplicationName string = "zylisp" )
var ( // Version is populated at compile time by govvv from ./VERSION Version string // GitCommit is populated at compile time by govvv. GitCommit string // GitState is populated at compile time by govvv. GitState string // GitBranch is current branch name the code is built off GitBranch string // BuildDate is RFC3339 formatted UTC date BuildDate string )
func BuildString() string
BuildString returns a string containing information about the current build.
func CamelCase(src string, capit bool) string
CamelCase takes a string and a boolean and returns a camel-cased version of
the provided string. If the provided boolean is true,
func IsDir(path string) bool
IsDir returns a boolean depending upon whether the provided path points
to a directory or not.
func RemoveExtension(path string) string
RemoveExtension returns just the bare name of a path without the final
'.*' ending.
func SetupLogger(level string)
SetupLogger is a dispatch function that calls specific setup functions depending upon such things as command line paramaters or whether the context is a test runner, etc.
func VersionString() string
VersionString returns a version string or N/A, if one cannot be determined.