Initial commit

This commit is contained in:
XOF
2025-11-20 12:12:26 +08:00
commit 179a58b55a
169 changed files with 64463 additions and 0 deletions

19
internal/errors/errors.go Normal file
View File

@@ -0,0 +1,19 @@
// Filename: internal/errors/errors.go
package errors
import (
std_errors "errors" // 为标准库errors包指定别名
)
func Is(err, target error) bool {
return std_errors.Is(err, target)
}
func As(err error, target any) bool {
return std_errors.As(err, target)
}
func Unwrap(err error) error {
return std_errors.Unwrap(err)
}