import "robpike.io/ivy/config"
Order here determines order in the Config.debug array.
type Config struct {
// contains filtered or unexported fields
}
A Config holds information about the configuration of the system. The zero value of a Config represents the default values for all settings.
Base returns the input and output bases.
BigOrigin returns the index origin as a *big.Int.
CPUTime returns the duration of the last interactive operation.
Debug returns the value of the specified boolean debugging flag.
ErrOutput returns the writer to be used for error output.
FloatFormat returns the parsed information about the format, if it's a floating-point format.
FloatPrec returns the floating-point precision in bits. The exponent size is fixed by math/big.
Format returns the formatting string. If empty, the default formatting is used, as defined by the bases.
InputBase returns the input base.
MaxBits returns the maximum integer size to store, in bits.
MaxDigits returns the maximum integer size to print as integer, in digits.
Origin returns the index origin, default 1.
Output returns the writer to be used for program output.
OutputBase returns the output base.
PrintCPUTime returns a nicely formatted version of the CPU time, with 3 decimal places in whatever unit best fits. The default String method for Duration prints too many decimals.
Prompt returns the interactive prompt.
Random returns the generator for random numbers.
Format returns the formatting string for rationals.
SetBase sets the input and output bases.
SetCPUTime sets the duration of the last interactive operation.
SetDebug sets the value of the specified boolean debugging flag. It returns false if the flag is unknown.
SetErrOutput sets the writer to which error output is printed; default is os.Stderr.
SetFloatPrec sets the floating-point precision in bits.
SetFormat sets the formatting string. Rational formatting is just this format applied twice with a / in between.
MaxBits sets the maximum integer size to store, in bits.
SetMaxDigits sets the maximum integer size to print as integer, in digits.
SetOrigin sets the index origin.
SetOutput sets the writer to which program output is printed; default is os.Stdout.
SetPrompt sets the interactive prompt.
SetRandomSeed sets the seed for the random number generator.
Package config imports 8 packages (graph) and is imported by 9 packages. Updated 2016-07-17. Refresh now. Tools for package owners.