gowsay

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: GPL-3.0 Imports: 7 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, options Mooptions) (string, error)

Types

type Face

type Face struct {
	Eyes     string
	Tongue   string
	Thoughts string
	Cowfile  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