learning_go/pkg/mod/gopkg.in/dixonwille/wlog.v2@v2.0.0/interface.go
a.pivkin 59666d0dd6 wer
2025-09-06 13:02:52 +03:00

15 lines
322 B
Go

package wlog
// UI simply writes to an io.Writer with a new line appended to each call.
// It also has the ability to ask a question and return a response.
type UI interface {
Log(string)
Output(string)
Success(string)
Info(string)
Error(string)
Warn(string)
Running(string)
Ask(string, string) (string, error)
}