package main
import (
"fmt"
"github.com/jpillora/go-tld.git"
)
func main() {
var test1, _ = tld.Parse("http://google.com")
fmt.Print(test1)
}
panic: runtime error: index out of range
goroutine 1 [running]:
.../vendor/github.com/jpillora/go-tld%2egit.Parse(0x4cc0dc, 0x11, 0xc420059f58, 0x0, 0x0)
.../vendor/github.com/jpillora/go-tld.git/parse.go:50 +0x4f2
main.main()
.../app/cmd/TestGolangLanguage.go:9 +0x36
This simply code make panic error