Discover Packages
github.com/solaegis/boilr
pkg
prompt
package
Version:
v1.1.3
Opens a new window with list of versions in this module.
Published: Nov 21, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func CachedValue(value string , defval interface{}, key string ) func() interface{}
func New(fieldName string , defval interface{}) func() interface{}
New returns a prompt closure when executed asks for
user input once and caches it for further invocations
and has a default value that returns result.
TODO add deep pretty printer
TODO handle TOML
Source Files
¶
Click to show internal directories.
Click to hide internal directories.