From 107c9e5aff24a94bf1b7c4d1f5fcae3c5ef43980 Mon Sep 17 00:00:00 2001 From: hahwul Date: Thu, 16 Sep 2021 21:16:54 +0900 Subject: [PATCH] update code --- distribute-readme.go | 4 +++- go.mod | 6 +++++- go.sum | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/distribute-readme.go b/distribute-readme.go index 6978fe6..b7856c1 100644 --- a/distribute-readme.go +++ b/distribute-readme.go @@ -9,6 +9,8 @@ import ( "reflect" "sort" "strings" + + au "github.com/logrusorgru/aurora" ) type mmm = map[string]interface{} @@ -141,5 +143,5 @@ func main() { } fmt.Println("[+] Patched README.md file") fmt.Println("[+] Please check README file and git push") - fmt.Println("[ copy/paste this ] git add data.json README.md ; git commit -m 'distribute readme'; git push -u origin master") + fmt.Println("[ copy/paste this ] ", au.BrightYellow("git add data.json README.md ; git commit -m 'distribute readme'; git push")) } diff --git a/go.mod b/go.mod index 677d61a..8da04db 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,8 @@ module github.com/hahwul/WebHackerWeapons go 1.16 -require golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4 +require ( + github.com/logrusorgru/aurora v2.0.3+incompatible + github.com/logrusorgru/aurora/v3 v3.0.0 // indirect + golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4 +) diff --git a/go.sum b/go.sum index 7a6b34b..9e9461b 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,7 @@ +github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8= +github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= +github.com/logrusorgru/aurora/v3 v3.0.0 h1:R6zcoZZbvVcGMvDCKo45A9U/lzYyzl5NfYIvznmDfE4= +github.com/logrusorgru/aurora/v3 v3.0.0/go.mod h1:vsR12bk5grlLvLXAYrBsb5Oc/N+LxAlxggSjiwMnCUc= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4 h1:b0LrWgu8+q7z4J+0Y3Umo5q1dL7NXBkKBWkaVkAq17E= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=