Search Apps Documentation Source Content File Folder Download Copy Actions Download

doc.gno

0.44 Kb ยท 16 lines
 1/*
 2Package ascii provides a simple way to create ASCII components in Gno.
 3
 4The ascii package allows you to create basic ASCII components like boxes and lines, and output the generated ASCII to a string in codeblock format when necessary.
 5
 6Example:
 7
 8	import "gno.land/p/lou/ascii"
 9
10	func Foo() string {
11	    return ascii.Frame([]string{"Hello, World!"}, 20, 5, ascii.AlignWCenter, ascii.AlignHCenter)
12	}
13
14*/
15
16package ascii // import "gno.land/p/lou/ascii"