diff --git a/main.go b/main.go index 7d52cb8..15a75e8 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + _ "embed" "fmt" "log" "strings" @@ -8,6 +9,9 @@ import ( "time" ) +//go:embed title.txt +var appNameASCII string + type publicIP struct { v4 string v6 string @@ -60,11 +64,7 @@ func getDNSRecords() []DNSRecords { } func initialize() { - fmt.Println(" _______ _______ ___ _ ___ _ ______") - fmt.Println(" / ___/ /__ __ _____/ / _/ /__ ________ / _ \\__ _____ ___ ___ _ (_)___ / _ \\/ |/ / __/") - fmt.Println("/ /__/ / _ \\/ // / _ / _/ / _ `/ __/ -_) / // / // / _ \\/ _ `/ ' \\/ / __/ / // / /\\ \\ ") - fmt.Println("\\___/_/\\___/\\_,_/\\_,_/_//_/\\_,_/_/ \\__/ /____/\\_, /_//_/\\_,_/_/_/_/_/\\__/ /____/_/|_/___/ ") - fmt.Println(" /___/ ") + fmt.Print(appNameASCII) var recordType string if UseIPv4() && UseIPv6() { diff --git a/title.txt b/title.txt new file mode 100644 index 0000000..06eeff2 --- /dev/null +++ b/title.txt @@ -0,0 +1,5 @@ + _______ _______ ___ _ ___ _ ______ + / ___/ /__ __ _____/ / _/ /__ ________ / _ \__ _____ ___ ___ _ (_)___ / _ \/ |/ / __/ + / /__/ / _ \/ // / _ / _/ / _ `/ __/ -_) / // / // / _ \/ _ `/ ' \/ / __/ / // / /\ \ + \___/_/\___/\_,_/\_,_/_//_/\_,_/_/ \__/ /____/\_, /_//_/\_,_/_/_/_/_/\__/ /____/_/|_/___/ + /___/