Documentation ¶
Index ¶
- type UI
- func (ui *UI) Debug(err string)
- func (ui *UI) Debugf(format string, a ...interface{})
- func (ui *UI) Error(err string)
- func (ui *UI) Errorf(format string, a ...interface{})
- func (ui *UI) Fatal(err string)
- func (ui *UI) Fatalf(format string, a ...interface{})
- func (ui *UI) Info(err string)
- func (ui *UI) Infof(format string, a ...interface{})
- func (ui *UI) SetLogfile(file io.Writer)
- func (ui *UI) SetPrettyPrint(enabled bool)
- func (ui *UI) ShouldEnableDebug(enabled bool)
- func (ui *UI) ShowResult()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UI ¶
type UI struct { LogFile io.Writer HostingEnabled bool Port string PrettyLog bool DebugEnabled bool // contains filtered or unexported fields }
UI is the way to display stuff on the console.
func (*UI) Error ¶ added in v0.5.1
Error logs errors, these can later be followed up on with a fatal or have potential consequences for the outcome
func (*UI) Errorf ¶ added in v0.6.0
Errorf logs errors, these can later be followed up on with a fatal or have potential consequences for the outcome
func (*UI) Fatal ¶ added in v0.5.1
Fatal should be called when in an unrecoverable state. EG: config file not found, template function not called etc.
func (*UI) Fatalf ¶ added in v0.6.0
Fatalf should be called when in an unrecoverable state. EG: config file not found, template function not called etc.
func (*UI) SetLogfile ¶ added in v0.7.0
SetLogfile sets the output writer for the logger
func (*UI) SetPrettyPrint ¶ added in v0.7.0
SetPrettyPrint this sets the setting for pretty printing,
func (*UI) ShouldEnableDebug ¶ added in v0.13.0
ShouldEnableDebug enables/disables debug logging (performance)
func (*UI) ShowResult ¶ added in v0.5.1
func (ui *UI) ShowResult()
ShowResult should be shown when something builds successfully