platform: modularize api/gui, add docs-tests-web foundation, and refresh root config

This commit is contained in:
beckline
2026-03-26 22:40:54 +03:00
parent 0e2d7f61ea
commit 6a56d734c2
562 changed files with 70151 additions and 16423 deletions

View File

@@ -0,0 +1,26 @@
package app
import "strings"
func errSingBoxProfileMode() error {
return &singBoxProfileError{text: "mode must be typed|raw"}
}
func errSingBoxProfileID() error {
return &singBoxProfileError{text: "invalid profile id"}
}
func errSingBoxProfileExists() error {
return &singBoxProfileError{text: "profile already exists"}
}
type singBoxProfileError struct {
text string
}
func (e *singBoxProfileError) Error() string {
if e == nil {
return "singbox profile error"
}
return strings.TrimSpace(e.text)
}