logic

package
v0.0.0-...-6a15357 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

logic contains the business logic of the application.

Since this application's actual focus is to demonstrate various API consumption issues, the business logic is kind of random. We're just returning lines from books.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadRandomLineFromFile

func ReadRandomLineFromFile(fileName string, lineNumber int) (string, error)

Types

type BookNotFoundError

type BookNotFoundError struct {
	BookTitle string
}

func (*BookNotFoundError) Error

func (e *BookNotFoundError) Error() string

type LineNotFoundError

type LineNotFoundError struct {
	LineNumber int
}

func (*LineNotFoundError) Error

func (e *LineNotFoundError) Error() string

Jump to

Keyboard shortcuts

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