diff --git a/.github/codegen.js b/.github/codegen.js index e45b1bd..0bb0c67 100644 --- a/.github/codegen.js +++ b/.github/codegen.js @@ -3,6 +3,8 @@ */ const fs = require('fs/promises'); +// If you used this codegen, don't forget to reset +// the letters array just to be a single value. const letters = [ ` @@ -11,157 +13,7 @@ const letters = | (_| | \\__,_| `, -` _ -| |__ -| '_ \\ -| |_) | -|_.__/ - `, -` - ___ - / __| - | (__ - \\___| - `, -` _ - __| | - / _ | - | (_| | - \\__,_| - `, -` - ___ - / _ \\ - | __/ - \\___| - `, -` __ - / _| - | |_ - | _| - |_| - `, -` - __ _ - / _\` | - | (_| | - \\__, | - |___/ `, -` _ - | |__ - | '_ \\ - | | | | - |_| |_| - `, -` _ - (_) - | | - | | - |_| - `, -` _ - (_) - | | - | | - _/ | - |__/ `, -` _ - | | __ - | |/ / - | < - |_|\\_\\ - `, -` _ - | | - | | - | | - |_| - `, -` - _ __ ___ - | '_ \` _ \\ - | | | | | | - |_| |_| |_| - `, -` - _ __ - | '_ \ - | | | | - |_| |_| - `, -` - ___ - / _ \ - | (_) | - \___/ - `, -` - _ __ - | '_ \ - | |_) | - | .__/ - |_| `, -` - __ _ - / _\` | - | (_| | - \\__, | - |_|`, -` - _ __ - | '__| - | | - |_| - `, -` - ___ - / __| - \\__ \\ - |___/ - `, -` _ - | |_ - | __| - | |_ - \\__| - `, -` - _ _ - | | | | - | |_| | - \\__,_| - `, -` - __ __ - \\ \\ / / - \\ V / - \\_/ - `, -` - __ __ - \\ \\ /\\ / / - \\ V V / - \\_/\\_/ - `, -` - __ __ - \\ \\/ / - > < - /_/\\_\\ - `, -` - _ _ - | | | | - | |_| | - \\__, | - |___/ `, -` - ____ - |_ / - / / - /___| - `, - ] +] ;(async () => { let output = '' diff --git a/asciitxt.go b/asciitxt.go index cb1f6d2..52b7ed5 100644 --- a/asciitxt.go +++ b/asciitxt.go @@ -1,4 +1,6 @@ -// ASCIITXT is a simple utility for creating ascii texts. +// ASCIITXT is a simple utility for creating ASCII texts. +// The text that can be created is limited to a certain input as the maintainers +// have to input all the text manually. package asciitxt import ( @@ -61,7 +63,7 @@ func WithConfig(txt string, config Config) string { return output.String() } -// +// Get a depth (vertical) length for a certain style. func getStyleLength(style Style) int { switch style { case StyleStandard: @@ -71,6 +73,8 @@ func getStyleLength(style Style) int { } } +// Get a letter by a certain style. +// It returns a panic if the style input is invalid. func getStyleLetter(style Style, letter string) []string { switch style { case StyleStandard: