1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

formatting

Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-08-17 10:06:20 +03:00
parent 00967408dc
commit 07046ab978
112 changed files with 477 additions and 517 deletions

View File

@@ -30,7 +30,6 @@ var IsLoopbackSubdomain = func(s string) bool {
if !strings.Contains(machineHostname, ".") { // if machine name's is not a loopback by itself
valid = s == machineHostname
}
}
return valid
}
@@ -96,10 +95,8 @@ const (
defaultServerPort = 8080
)
var (
// defaultServerAddr the default server addr which is: localhost:8080
defaultServerAddr = defaultServerHostname + ":" + strconv.Itoa(defaultServerPort)
)
// defaultServerAddr the default server addr which is: localhost:8080
var defaultServerAddr = defaultServerHostname + ":" + strconv.Itoa(defaultServerPort)
// ResolveAddr tries to convert a given string to an address which is compatible with net.Listener and server
func ResolveAddr(addr string) string {