banner

package
v2.89.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package banner generates ASCII picture of the Berty logo with a message.

       /\
  /\  / /\  ______         Lorem ipsum dolor sit amet, consectetur
 / /\/ /  \/  |   \        adipiscing elit, sed do eiusmod tempor
| |  \/   | ()|    |   incididunt ut labore et dolore magna aliqua.
 \ \      |   |____|     Ut enim ad minim veniam, quis nostrud [...]
  \ \      \____/ __           __
   \/       /    / /  ___ ____/ /___ __
   /     __/    / _ \/ -_) __/ __/ // /
  /_____/      /____/\__/_/  \__/\__ /
 /__/                           /___/

Index

Examples

Constants

View Source

Variables

This section is empty.

Functions

func OfTheDay

func OfTheDay() string

OfTheDay returns the ascii-art representation of the Berty bird saying the quote of the day

Example
fmt.Println(OfTheDay())
Output:

func Say

func Say(message string) string

Say returns an ascii-art representation of the Berty bird saying something

Example
fmt.Println(Say("hello world!"))
Output:

          /\
     /\  / /\  ______
    / /\/ /  \/  |   \                     hello world!
   | |  \/   | ()|    |
    \ \      |   |____|
     \ \      \____/ __           __
      \/       /    / /  ___ ____/ /___ __
      /     __/    / _ \/ -_) __/ __/ // /
     /_____/      /____/\__/_/  \__/\__ /
    /__/                           /___/
Example (Long)
fmt.Println(Say(`Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`))
Output:

          /\
     /\  / /\  ______         Lorem ipsum dolor sit amet, consectetur
    / /\/ /  \/  |   \        adipiscing elit, sed do eiusmod tempor
   | |  \/   | ()|    |   incididunt ut labore et dolore magna aliqua.
    \ \      |   |____|     Ut enim ad minim veniam, quis nostrud [...]
     \ \      \____/ __           __
      \/       /    / /  ___ ____/ /___ __
      /     __/    / _ \/ -_) __/ __/ // /
     /_____/      /____/\__/_/  \__/\__ /
    /__/                           /___/

Types

type Quote

type Quote struct {
	Author string
	Text   string
}

func QOTD

func QOTD() Quote

func RandomQuote

func RandomQuote() Quote

func (Quote) String

func (q Quote) String() string

Jump to

Keyboard shortcuts

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