Documentation ¶
Index ¶
Constants ¶
View Source
const ( ValidChapterAndVerse = iota InvalidChapterNumber InvalidVerseNumber )
Variables ¶
This section is empty.
Functions ¶
func ParseInputArguments ¶
ParseInputArguments takes in a cli.Context object and returns three integers: the chapter number, the verse number, and an error code.
Parameters: - ctx: a cli.Context object containing the user's input arguments
Returns:
- chapter: an integer representing the chapter number provided by the user
- verse: an integer representing the verse number provided by the user
- errorCode: an integer representing any errors encountered during parsing (e.g. InvalidChapterNumber, InvalidVerseNumber, ValidChapterAndVerse)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.