@@ -185,31 +185,43 @@ func (r *WatcherRequires) UnmarshalText(text []byte) error {
185185// Sentinel errors for assets validation.
186186var (
187187 ErrAssetsDirRequired = errors .New (
188- "assets.dir is required when embedded asset serving is enabled" )
188+ "assets.dir is required when embedded asset serving is enabled" ,
189+ )
189190 ErrAssetsURLPrefixRequired = errors .New (
190- "assets.url-prefix is required when embedded asset serving is enabled" )
191+ "assets.url-prefix is required when embedded asset serving is enabled" ,
192+ )
191193 ErrAssetsURLPrefixNoLeadingSlash = errors .New (
192- "assets.url-prefix must start with '/'" )
194+ "assets.url-prefix must start with '/'" ,
195+ )
193196 ErrAssetsURLPrefixNoTrailingSlash = errors .New (
194- "assets.url-prefix must end with '/'" )
197+ "assets.url-prefix must end with '/'" ,
198+ )
195199 ErrAssetsURLPrefixDoubleSlash = errors .New (
196- "assets.url-prefix must not contain double slashes" )
200+ "assets.url-prefix must not contain double slashes" ,
201+ )
197202 ErrAssetsURLPrefixQueryString = errors .New (
198- "assets.url-prefix must not contain a query string" )
203+ "assets.url-prefix must not contain a query string" ,
204+ )
199205 ErrAssetsURLPrefixFragment = errors .New (
200- "assets.url-prefix must not contain a fragment" )
206+ "assets.url-prefix must not contain a fragment" ,
207+ )
201208 ErrAssetsURLPrefixDotSegment = errors .New (
202- "assets.url-prefix must not contain dot segments" )
209+ "assets.url-prefix must not contain dot segments" ,
210+ )
203211 ErrAssetsURLPrefixBackslash = errors .New (
204- "assets.url-prefix must not contain backslashes" )
212+ "assets.url-prefix must not contain backslashes" ,
213+ )
205214 ErrAssetsURLPrefixEncodedTraversal = errors .New (
206215 "assets.url-prefix must not contain percent-encoded dots, " +
207- "slashes, or backslashes" )
216+ "slashes, or backslashes" ,
217+ )
208218 ErrAssetsURLPrefixRoot = errors .New (
209- "assets.url-prefix must not be \" /\" ; it would conflict with page routes" )
219+ "assets.url-prefix must not be \" /\" ; it would conflict with page routes" ,
220+ )
210221 ErrAssetsURLPrefixInvalidChar = errors .New (
211222 "assets.url-prefix contains invalid characters; " +
212- "use only ASCII letters, digits, hyphens, underscores, and slashes" )
223+ "use only ASCII letters, digits, hyphens, underscores, and slashes" ,
224+ )
213225)
214226
215227// ValidateAssetsURLPrefix checks that s is a valid URL path prefix for embedded files.
0 commit comments