Fix golint
This commit is contained in:
parent
433f2c9b36
commit
2218107f1f
|
@ -15,7 +15,7 @@ func OptionParser(x ConsoleParser) Option {
|
|||
// OptionWriter to set a custom ConsoleWriter object. An argument should implement ConsoleWriter interface.
|
||||
func OptionWriter(x ConsoleWriter) Option {
|
||||
return func(p *Prompt) error {
|
||||
RegisterConsoleWriter(x)
|
||||
registerConsoleWriter(x)
|
||||
p.renderer.out = x
|
||||
return nil
|
||||
}
|
||||
|
@ -229,7 +229,7 @@ func OptionAddASCIICodeBind(b ...ASCIICodeBind) Option {
|
|||
// New returns a Prompt with powerful auto-completion.
|
||||
func New(executor Executor, completer Completer, opts ...Option) *Prompt {
|
||||
defaultWriter := NewStandardOutputWriter()
|
||||
RegisterConsoleWriter(defaultWriter)
|
||||
registerConsoleWriter(defaultWriter)
|
||||
|
||||
pt := &Prompt{
|
||||
in: NewStandardInputParser(),
|
||||
|
|
Loading…
Reference in New Issue