mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +02:00
12 lines
207 B
Go
12 lines
207 B
Go
package fields
|
|
|
|
import (
|
|
E "github.com/yusing/go-proxy/internal/error"
|
|
)
|
|
|
|
type Host string
|
|
type Subdomain = Alias
|
|
|
|
func ValidateHost[String ~string](s String) (Host, E.NestedError) {
|
|
return Host(s), nil
|
|
}
|