Exclude all of go from runtime image #4

Open
ChausseBenjamin wants to merge 7 commits from ChausseBenjamin/main into main
5 changed files with 38 additions and 17 deletions
Showing only changes of commit 8203405eba - Show all commits

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 @@
_______ _______ ___ _ ___ _ ______
/ ___/ /__ __ _____/ / _/ /__ ________ / _ \__ _____ ___ ___ _ (_)___ / _ \/ |/ / __/
/ /__/ / _ \/ // / _ / _/ / _ `/ __/ -_) / // / // / _ \/ _ `/ ' \/ / __/ / // / /\ \
\___/_/\___/\_,_/\_,_/_//_/\_,_/_/ \__/ /____/\_, /_//_/\_,_/_/_/_/_/\__/ /____/_/|_/___/
/___/