GoDoxy/internal/proxy/fields/host.go

14 lines
213 B
Go

package fields
import (
E "github.com/yusing/go-proxy/internal/error"
)
type (
Host string
Subdomain = Alias
)
func ValidateHost[String ~string](s String) (Host, E.NestedError) {
return Host(s), nil
}