Exclude all of go from runtime image #4
10
main.go
10
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() {
|
||||
|
||||
5
title.txt
Normal file
5
title.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
_______ _______ ___ _ ___ _ ______
|
||||
/ ___/ /__ __ _____/ / _/ /__ ________ / _ \__ _____ ___ ___ _ (_)___ / _ \/ |/ / __/
|
||||
/ /__/ / _ \/ // / _ / _/ / _ `/ __/ -_) / // / // / _ \/ _ `/ ' \/ / __/ / // / /\ \
|
||||
\___/_/\___/\_,_/\_,_/_//_/\_,_/_/ \__/ /____/\_, /_//_/\_,_/_/_/_/_/\__/ /____/_/|_/___/
|
||||
/___/
|
||||
Reference in New Issue
Block a user