[+] add terminal output colors

This commit is contained in:
Seven SUN 2025-01-25 20:14:15 +08:00
parent 301437b4ec
commit 7d3a086552
Signed by: realSunyz
SSH Key Fingerprint: SHA256:5dk3slVnWtJYlwrnURrUYXoimuSx8Vi9pbs4n3XoGH0
4 changed files with 44 additions and 27 deletions

View File

@ -1,5 +1,6 @@
name: Build Action for Go
on: [push]
on:
[workflow_dispatch]
jobs:
build:

54
.gitignore vendored
View File

@ -1,3 +1,31 @@
### Go template
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work
go.work.sum
# env file
.env
### macOS template
# General
.DS_Store
.AppleDouble
@ -25,28 +53,6 @@ Network Trash Folder
Temporary Items
.apdisk
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work
go.work.sum
# env file
.env
# geofeed file
# Custom
geofeed.csv
build

View File

@ -1,3 +1,3 @@
module github.com/realsunyz/geofeed-validator
module github.com/realsunyz/geofeed-tools
go 1.23.2
go 1.23

10
src/plugin/color/color.go Normal file
View File

@ -0,0 +1,10 @@
package color
const (
Reset = "\033[0m"
Red = "\033[31m"
Green = "\033[32m"
Yellow = "\033[33m"
Magenta = "\033[35m"
Cyan = "\033[36m"
)