cmd/pkgserver: constant string in pattern

This resolves patterns at compile time.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-11 02:23:43 +09:00
parent e130443cf4
commit a1b515074e
3 changed files with 9 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ import (
)
// prefix is prepended to every API path.
const prefix = "/api/" + ApiVersion + "/"
const prefix = "/api/" + apiVersion + "/"
func TestAPIInfo(t *testing.T) {
t.Parallel()