...

Source file src/github.com/common-nighthawk/go-figure/figure_test.go

Documentation: github.com/common-nighthawk/go-figure

     1  package figure
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  func ExampleAlphabet() {
     8  	myFigure := NewFigure("Hello world", "alphabet", true)
     9  	fmt.Println(myFigure)
    10  	// Output:
    11  	// H  H     l l                     l    d
    12  	// H  H     l l                     l    d
    13  	// HHHH eee l l ooo   w   w ooo rrr l  ddd
    14  	// H  H e e l l o o   w w w o o r   l d  d
    15  	// H  H ee  l l ooo    w w  ooo r   l  ddd
    16  }
    17  
    18  func ExampleDefault() {
    19  	myFigure := NewFigure("Hello world", "", true)
    20  	fmt.Println(myFigure)
    21  	// Output:
    22  	//   _   _          _   _                                       _       _
    23  	//  | | | |   ___  | | | |   ___     __      __   ___    _ __  | |   __| |
    24  	//  | |_| |  / _ \ | | | |  / _ \    \ \ /\ / /  / _ \  | '__| | |  / _` |
    25  	//  |  _  | |  __/ | | | | | (_) |    \ V  V /  | (_) | | |    | | | (_| |
    26  	//  |_| |_|  \___| |_| |_|  \___/      \_/\_/    \___/  |_|    |_|  \__,_|
    27  }
    28  

View as plain text