readers

package
v0.5.502 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLIConfigReader

func CLIConfigReader() (*config.CLIConfig, error)

func CLIYesOrNoReader

func CLIYesOrNoReader(message string, dft bool) bool

CLIYesOrNoReader reads a yes or no answer from the command line. It prompts the user with the given message and default value, and returns true if the user answers "y" or "Y", and false otherwise. If there is an error while reading the input, it returns false. If the user simply presses enter without providing any input, it returns the default value specified by the `dft` parameter.

func JSONConfigReader

func JSONConfigReader(filePath string) (*config.JSONConfig, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL