Documentation ¶
Index ¶
- func ConfigureDisableSyntaxHighlighting()
- func ConfigureEnableSyntaxHighlighting()
- func ConfigureResetOutput()
- func ConfigureResetPrefix()
- func ConfigureSetIncludeContext(x bool)
- func ConfigureSetOutput(wr io.Writer)
- func ConfigureSetOutputFunction(x func(string))
- func ConfigureSetPrefix(newPrefix string)
- func ConfigureSetPrefixFunction(pf func() string)
- func Disable()
- func Enable()
- func Format(o ...interface{}) string
- func IC(o ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureDisableSyntaxHighlighting ¶
func ConfigureDisableSyntaxHighlighting()
ConfigureDisableSyntaxHighlighting disables syntax highlighting on output from IC
func ConfigureEnableSyntaxHighlighting ¶
func ConfigureEnableSyntaxHighlighting()
ConfigureEnableSyntaxHighlighting enables syntax highlighting on output from IC
func ConfigureResetOutput ¶
func ConfigureResetOutput()
ConfigureResetOutput resets the output of IC to os.Stderr. Can be overridden by subsequent calls to ConfigureSetOutput or ConfigureSetOutputFunction
func ConfigureResetPrefix ¶
func ConfigureResetPrefix()
ConfigureResetPrefix resets the prefix for outputs from IC and Format to default ("ic| "). This overrides anything set in ConfigureSetPrefix or ConfigureSetPrefixFunction
func ConfigureSetIncludeContext ¶
func ConfigureSetIncludeContext(x bool)
ConfigureSetIncludeContext takes a boolean to signify if every call of Format or IC should include a context string (which include the source file name, line that contains the IC or Format function call and the package name)
func ConfigureSetOutput ¶
ConfigureSetOutput sets the output of IC to the provided io.Writer. Can be overridden by subsequent calls to ConfigureResetOutput or ConfigureSetOutputFunction. A panic will occur if the supplied writer cannot be written to.
func ConfigureSetOutputFunction ¶
func ConfigureSetOutputFunction(x func(string))
ConfigureSetOutputFunction sets the output of IC to an arbitrary function. Can be overridden by subsequent calls to ConfigureResetOutput or ConfigureSetOutput
func ConfigureSetPrefix ¶
func ConfigureSetPrefix(newPrefix string)
ConfigureSetPrefix sets the prefix for output from IC and Format. Can be overridden by subsequent calls to ConfigureResetPrefix or ConfigureSetPrefixFunction
func ConfigureSetPrefixFunction ¶
func ConfigureSetPrefixFunction(pf func() string)
ConfigureSetPrefixFunction sets the prefix for the output from IC and Format to the result of the supplied function. Can be overridden by subsequent calls to ConfigureResetPrefix or ConfigureSetPrefix
Types ¶
This section is empty.