-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
40 lines (35 loc) · 816 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package main
import (
"github.com/wsrf16/swiss/sugar/logo"
)
func main() {
// logo.SetFormatter(&logo.JSONFormatter{PrettyPrint: true})
logo.SetFormatter(&logo.TextFormatter{
FullTimestamp: true,
ForceQuote: true,
})
logo.SetLevel(logo.DebugLevel)
// {
// transfer, err := httptrans.BuildTransfer(":8082", false)
// if err != nil {
// panic(err)
// }
//
// go func() {
// time.Sleep(10 * time.Second)
// transfer.Unload()
// }()
//
// err = transfer.TransferFromListen()
// if err != nil {
// panic(err)
// }
// os.Exit(0)
// }
//cname, _ := net.LookupCNAME("www.baidu.com")
//fmt.Println("cname:", cname)
//dnsname, _ := net.LookupAddr("127.0.0.1")
//fmt.Println("hostname:", dnsname)
// fmt.Println(err)
// select {}
}