gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/gmhttp/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 "gitee.com/ks-custle/core-gm/gmhttp/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{}