utils

package
v0.0.0-...-17095fe Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidChapterAndVerse = iota
	InvalidChapterNumber
	InvalidVerseNumber
)

Variables

This section is empty.

Functions

func ParseInputArguments

func ParseInputArguments(ctx *cli.Context) (int, int, int)

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.

Jump to

Keyboard shortcuts

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