Documentation
¶
Index ¶
- func Bool(opts ...option) (bool, error)
- func Byte(opts ...option) (byte, error)
- func Float32(opts ...option) (float32, error)
- func Float64(opts ...option) (float64, error)
- func Int(opts ...option) (int, error)
- func MaxAttempt(count int) option
- func Prompt(inputPrompt string) option
- func String(opts ...option) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float32 ¶
Float32 reads an floating point number from the input source and returns as `float32`
func Float64 ¶
Float64 reads an floating point number from the input source and returns as `float64`
func MaxAttempt ¶
func MaxAttempt(count int) option
MaxAttempts limits the number of invalid input attempts. A value of 0 retries indefinitely.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.