github.com/guyezi/gofrontend@v0.0.0-20200228202240-7a62a49e62c0/libgo/go/net/http/cookiejar/dummy_publicsuffix_test.go (about) 1 // Copyright 2016 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package cookiejar_test 6 7 import "net/http/cookiejar" 8 9 type dummypsl struct { 10 List cookiejar.PublicSuffixList 11 } 12 13 func (dummypsl) PublicSuffix(domain string) string { 14 return domain 15 } 16 17 func (dummypsl) String() string { 18 return "dummy" 19 } 20 21 var publicsuffix = dummypsl{}