package main import ( "fmt" "math/rand" "os" "strings" ) func random(min int, max int) int { return rand.Intn(max-min) + min } func main() { foxxo := []byte{32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 47, 10, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 47, 47, 92, 95, 32, 32, 32, 32, 47, 10, 32, 32, 32, 32, 32, 32, 32, 95, 95, 95, 95, 44, 46, 46, 46, 44, 95, 95, 95, 95, 95, 95, 46, 46, 44, 95, 126, 96, 96, 32, 32, 45, 96, 46, 46, 44, 10, 32, 32, 32, 95, 44, 126, 194, 180, 34, 39, 32, 32, 44, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 46, 32, 32, 32, 32, 44, 126, 45, 45, 194, 180, 10, 44, 45, 34, 32, 32, 32, 32, 95, 46, 34, 124, 126, 47, 32, 32, 124, 46, 46, 44, 95, 95, 95, 95, 44, 41, 32, 44, 47, 44, 44, 34, 39, 10, 92, 95, 95, 44, 126, 34, 194, 180, 32, 32, 32, 47, 58, 41, 32, 47, 32, 32, 32, 32, 32, 32, 32, 124, 58, 92, 32, 92, 10, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 40, 58, 47, 92, 95, 45, 44, 32, 32, 32, 32, 32, 32, 92, 58, 46, 92, 95, 45, 44, 10} wordList := []string{"yip", "mrrp", "wah", "waah", "waf", "wef", "eeeeeee", "arf", "awf", "ahf"} var wordString string systemArgs := os.Args[1:] if len(systemArgs) == 0 { var wordAmount int = random(3, 10) for j := 0; j < wordAmount; j++ { wordString += wordList[random(0, len(wordList)-1)] + " " } } else { for j := 0; j < len(systemArgs); j++ { wordString += systemArgs[j] + " " } } var spacesAmount int = 40 - len(wordString) if spacesAmount < 0 { spacesAmount = 0 } templateList := []string{ strings.Repeat(" ", spacesAmount+1) + strings.Repeat("_", len(wordString)+1), strings.Repeat(" ", spacesAmount) + "< " + wordString + ">", strings.Repeat(" ", spacesAmount+1) + strings.Repeat("-", len(wordString)+1)} fmt.Println(strings.Join(templateList, "\n")) fmt.Println(string(foxxo)) }