Store the ascii title in a file for cleanliness
This commit is contained in:
10
main.go
10
main.go
@@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
_ "embed"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -8,6 +9,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//go:embed title.txt
|
||||||
|
var appNameASCII string
|
||||||
|
|
||||||
type publicIP struct {
|
type publicIP struct {
|
||||||
v4 string
|
v4 string
|
||||||
v6 string
|
v6 string
|
||||||
@@ -60,11 +64,7 @@ func getDNSRecords() []DNSRecords {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func initialize() {
|
func initialize() {
|
||||||
fmt.Println(" _______ _______ ___ _ ___ _ ______")
|
fmt.Print(appNameASCII)
|
||||||
fmt.Println(" / ___/ /__ __ _____/ / _/ /__ ________ / _ \\__ _____ ___ ___ _ (_)___ / _ \\/ |/ / __/")
|
|
||||||
fmt.Println("/ /__/ / _ \\/ // / _ / _/ / _ `/ __/ -_) / // / // / _ \\/ _ `/ ' \\/ / __/ / // / /\\ \\ ")
|
|
||||||
fmt.Println("\\___/_/\\___/\\_,_/\\_,_/_//_/\\_,_/_/ \\__/ /____/\\_, /_//_/\\_,_/_/_/_/_/\\__/ /____/_/|_/___/ ")
|
|
||||||
fmt.Println(" /___/ ")
|
|
||||||
|
|
||||||
var recordType string
|
var recordType string
|
||||||
if UseIPv4() && UseIPv6() {
|
if UseIPv4() && UseIPv6() {
|
||||||
|
|||||||
5
title.txt
Normal file
5
title.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
_______ _______ ___ _ ___ _ ______
|
||||||
|
/ ___/ /__ __ _____/ / _/ /__ ________ / _ \__ _____ ___ ___ _ (_)___ / _ \/ |/ / __/
|
||||||
|
/ /__/ / _ \/ // / _ / _/ / _ `/ __/ -_) / // / // / _ \/ _ `/ ' \/ / __/ / // / /\ \
|
||||||
|
\___/_/\___/\_,_/\_,_/_//_/\_,_/_/ \__/ /____/\_, /_//_/\_,_/_/_/_/_/\__/ /____/_/|_/___/
|
||||||
|
/___/
|
||||||
Reference in New Issue
Block a user