feat(sunsonic): expose type serverVersion in subsonic responses

https://opensubsonic.netlify.app/docs/responses/subsonic-response/
https://github.com/opensubsonic/open-subsonic-api/discussions/3
This commit is contained in:
sentriz
2023-04-08 01:20:34 +01:00
parent 3974b0d844
commit b8fceae383
32 changed files with 124 additions and 90 deletions

View File

@@ -3,13 +3,12 @@ package gonic
import (
_ "embed"
"fmt"
"strings"
)
//go:embed version.txt
var version string
var Version = fmt.Sprintf("v%s", strings.TrimSpace(version))
var Version = strings.TrimSpace(version)
const Name = "gonic"
const NameUpper = "GONIC"