diff --git a/_examples/auth/auth/main.go b/_examples/auth/auth/main.go index c05a4133..eca0be59 100644 --- a/_examples/auth/auth/main.go +++ b/_examples/auth/auth/main.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package main diff --git a/_examples/auth/auth/user.go b/_examples/auth/auth/user.go index a2e93017..f4f65ea4 100644 --- a/_examples/auth/auth/user.go +++ b/_examples/auth/auth/user.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package main diff --git a/_examples/auth/auth/user_provider.go b/_examples/auth/auth/user_provider.go index aedbc10a..3d05c6ac 100644 --- a/_examples/auth/auth/user_provider.go +++ b/_examples/auth/auth/user_provider.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package main diff --git a/_examples/mvc/websocket-auth/main.go b/_examples/mvc/websocket-auth/main.go index 89a52d93..eaea5da5 100644 --- a/_examples/mvc/websocket-auth/main.go +++ b/_examples/mvc/websocket-auth/main.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package main diff --git a/_examples/mvc/websocket-auth/user.go b/_examples/mvc/websocket-auth/user.go index a2e93017..f4f65ea4 100644 --- a/_examples/mvc/websocket-auth/user.go +++ b/_examples/mvc/websocket-auth/user.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package main diff --git a/_examples/mvc/websocket-auth/user_provider.go b/_examples/mvc/websocket-auth/user_provider.go index 16fbd7ce..cf1d9ae1 100644 --- a/_examples/mvc/websocket-auth/user_provider.go +++ b/_examples/mvc/websocket-auth/user_provider.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package main diff --git a/auth/auth.go b/auth/auth.go index 93c74d09..a39cd51b 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package auth diff --git a/auth/configuration.go b/auth/configuration.go index fb3ea57e..2bfd40ef 100644 --- a/auth/configuration.go +++ b/auth/configuration.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package auth @@ -169,7 +170,6 @@ func (c *Configuration) BindFile(filename string) error { return yaml.Unmarshal(contents, c) } - } // ToYAML returns the "c" Configuration's contents as raw yaml byte slice. diff --git a/auth/provider.go b/auth/provider.go index 9261e60f..7a2e4725 100644 --- a/auth/provider.go +++ b/auth/provider.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package auth diff --git a/auth/user.go b/auth/user.go index 9958077d..5c471fb3 100644 --- a/auth/user.go +++ b/auth/user.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package auth diff --git a/context/context_go118.go b/context/context_go118.go index 8ebe8055..20f0c59f 100644 --- a/context/context_go118.go +++ b/context/context_go118.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 package context diff --git a/x/pagination/pagination.go b/x/pagination/pagination.go index 8becf6b9..9981616a 100644 --- a/x/pagination/pagination.go +++ b/x/pagination/pagination.go @@ -1,4 +1,5 @@ //go:build go1.18 +// +build go1.18 /* Until go version 2, we can't really apply the type alias feature on a generic type or function,