Store the ascii title in a file for cleanliness

This commit is contained in:
Benjamin Chausse
2025-03-24 19:46:23 -04:00
parent fa82a09f03
commit 8203405eba
2 changed files with 10 additions and 5 deletions

10
main.go
View File

@@ -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() {

5
title.txt Normal file
View File

@@ -0,0 +1,5 @@
_______ _______ ___ _ ___ _ ______
/ ___/ /__ __ _____/ / _/ /__ ________ / _ \__ _____ ___ ___ _ (_)___ / _ \/ |/ / __/
/ /__/ / _ \/ // / _ / _/ / _ `/ __/ -_) / // / // / _ \/ _ `/ ' \/ / __/ / // / /\ \
\___/_/\___/\_,_/\_,_/_//_/\_,_/_/ \__/ /____/\_, /_//_/\_,_/_/_/_/_/\__/ /____/_/|_/___/
/___/