feat: add config and credential storage

This commit is contained in:
2026-05-13 16:17:30 +08:00
parent cb01999a77
commit 187c14122e
5 changed files with 254 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package apperrors
import (
"errors"
"fmt"
)
func User(message string) error {
return errors.New(message)
}
func Wrap(message string, err error) error {
if err == nil {
return nil
}
return fmt.Errorf("%s: %w", message, err)
}