gowsay

package module
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

README

A cowsay implementation as a library. Forked from
https://github.com/syohex/gowsay. Sample use:

#+BEGIN_SRC Go
package main

import (
	"fmt"
	"gowsay"
)

func main() {
	output, _ := gowsay.MakeCow("Hello There", gowsay.Mooptions{})
	fmt.Println(output)
}
#+END_SRC

Intended as demo in a blog post.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCow

func MakeCow(sentence string, cowtype CowType, options Mooptions) (string, error)

Types

type CowType

type CowType int
const (
	Apt CowType = iota + 1
	BeavisZen
	Bong
	BudFrogs
	Bunny
	Calvin
	Cheese
	Rooster
	Cower
	Daemon
	Default
	DragonAndCow
	Dragon
	Duck
	ElephantInSnake
	Elephant
	Eyes
	FlamingSheep
	Ghostbusters
	Gnu
	HeadIn
	HelloKitty
	Kiss
	Kitty
	Koala
	Kosh
	LukeKoala
	MechAndCow
	Meow
	Milk
	Moofasa
	Moose
	Mutilated
	PonySmaller
	Pony
	Ren
	Sheep
	Skeleton
	Snowman
	Stegosaurus
	Stimpy
	Turkey
	Turtle
	Tux
	UniponySmaller
	Unipony
)

type Face

type Face struct {
	Eyes     string
	Tongue   string
	Thoughts string
}

type Mooptions

type Mooptions struct {
	Borg     bool
	Dead     bool
	Greedy   bool
	Paranoid bool
	Stoned   bool
	Tired    bool
	Wired    bool
	Young    bool
	Think    bool
	Columns  int32
	Cowfile  string
}

Jump to

Keyboard shortcuts

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