From ccab29926dc9c23bb22e0bb867fe7d839fc43524 Mon Sep 17 00:00:00 2001 From: c-bata Date: Fri, 18 Aug 2017 02:12:13 +0900 Subject: [PATCH] Fix Input and Choose --- input.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input.go b/input.go index 1a54615..7083710 100644 --- a/input.go +++ b/input.go @@ -3,7 +3,7 @@ package prompt func dummyExecutor(in string) { return } // Input get the input data from the user and return it. -func Input(prefix string, completer Completer, opts ...option) string { +func Input(prefix string, completer Completer, opts ...Option) string { pt := New(dummyExecutor, completer) pt.renderer.prefixTextColor = DefaultColor pt.renderer.prefix = prefix @@ -17,7 +17,7 @@ func Input(prefix string, completer Completer, opts ...option) string { } // Choose to the shortcut of input function to select from string array. -func Choose(prefix string, choices []string, opts ...option) string { +func Choose(prefix string, choices []string, opts ...Option) string { completer := newChoiceCompleter(choices, FilterHasPrefix) pt := New(dummyExecutor, completer) pt.renderer.prefixTextColor = DefaultColor