# lolcat **Repository Path**: SuperWindcloud/lolcat ## Basic Information - **Project Name**: lolcat - **Description**: lolcat的Golang 包装器 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-05 - **Last Updated**: 2024-07-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🦄 [![Go Report Card](https://goreportcard.com/badge/chigo)](https://goreportcard.com/report/chigo) [![Go Reference](https://pkg.go.dev/badge/chigo/pkg.svg)](https://pkg.go.dev/chigo/pkg) [Lolcat](https://github.com/busyloop/lolcat) port for Golang 🌈 ## Showcase ![Screenshot](./assets/screenshot.png) ## Installation ```sh go install chigo@latest ``` ## Make and Run ``` go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct or go env -w GOPROXY=https://goproxy.cn,direct go mod tidy go run ./main.go ``` ## Documentation It also exports utils to output with colors in your own CLI Tools. ```go package main import ( chigo "chigo/pkg" "fmt" ) func main() { fmt.Println(chigo.Colorize("Hello, World!")) } ``` >more example for lolcat > ```go package cmd import ( "fmt" "os" "chigo/pkg" ) func error(text string) { chigo.PrintWithColors(text) os.Exit(1) } func repeatedFlag(longName string, shortName string) { error(fmt.Sprintf("You cannot pass --%s and -%s at the same time!", longName, shortName)) } func printHelp() { chigo.PrintWithColors(fmt.Sprintf(` lorelai %s Easily generate Lorem Ipsum on command line. -h or --help Print this -w or --word Number of words to print -p or --paragraph Number of paragraphs to print -s or --sentences Number of sentences to print -o or --output If passed it will try to put the output in a file --url A random URL --email A random Email Address --color Print the output with colors? Examples: lorelai -w 55 # Will print 55 words lorelai -p 5 # Will print 5 paragraphs lorelai -s 5 --output b # Will write 5 sentences on file b if possible lorelai -w 55 -s 5 # Will print 55 words and 5 sentences If you need more help, found a bug or want to suggest a new feature: https://github.com/UltiRequiem/lorelai`, VERSION)) } ``` ## Licence Licensed under the MIT License 📄