Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBadRouting is returned when an expected path variable is missing. ErrBadRouting = errors.New("inconsistent mapping between route and handler (programmer error)") )
View Source
var (
ErrRequestTypeNotFound = errors.New("Request type only valid for word, sentence and paragraph")
)
Functions ¶
func MakeHttpHandler ¶
func MakeLoremEndpoint ¶
Types ¶
type LoremRequest ¶
type LoremResponse ¶
type LoremService ¶
type LoremService struct { }
func (LoremService) Paragraph ¶
func (LoremService) Paragraph(min, max int) string
func (LoremService) Sentence ¶
func (LoremService) Sentence(min, max int) string
func (LoremService) Word ¶
func (LoremService) Word(min, max int) string
Click to show internal directories.
Click to hide internal directories.