package http import ( "fmt" "testing" ) func Test_parseTarget(t *testing.T) { fmt.Println(parseTarget("127.0.0.2:2213/abc?name=", false)) }