mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
14 lines
213 B
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
|
|
}
|