代码拉取完成,页面将自动刷新
同步操作将从 dromara/carbon 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package carbon
import (
"fmt"
)
var (
// ErrFailedParse failed to parse error.
ErrFailedParse = func(value any) error {
return fmt.Errorf("failed to parse %v as carbon", value)
}
// ErrFailedScan failed to scan error.
ErrFailedScan = func(value any) error {
return fmt.Errorf("failed to scan %v as carbon", value)
}
// ErrInvalidTimestamp invalid timestamp error.
ErrInvalidTimestamp = func(value string) error {
return fmt.Errorf("invalid timestamp %v", value)
}
// ErrNilLocation nil location error.
ErrNilLocation = func() error {
return fmt.Errorf("location cannot be nil")
}
// ErrNilLanguage nil language error.
ErrNilLanguage = func() error {
return fmt.Errorf("language cannot be nil")
}
// ErrInvalidLanguage invalid language error.
ErrInvalidLanguage = func(lang *Language) error {
return fmt.Errorf("invalid Language %v", lang)
}
// ErrEmptyLocale empty locale error.
ErrEmptyLocale = func() error {
return fmt.Errorf("locale cannot be empty")
}
// ErrNotExistLocale not exist locale error.
ErrNotExistLocale = func(locale string) error {
return fmt.Errorf("locale %q doesn't exist", locale)
}
// ErrEmptyResources empty resources error.
ErrEmptyResources = func() error {
return fmt.Errorf("resources cannot be empty")
}
// ErrInvalidResourcesError invalid resources error.
ErrInvalidResourcesError = func(resources map[string]string) error {
return fmt.Errorf("invalid resources %v", resources)
}
// ErrEmptyTimezone empty timezone error.
ErrEmptyTimezone = func() error {
return fmt.Errorf("timezone cannot be empty")
}
// ErrInvalidTimezone invalid timezone error.
ErrInvalidTimezone = func(timezone string) error {
return fmt.Errorf("invalid timezone %q, please see the file %q for all valid timezones", timezone, "$GOROOT/lib/time/zoneinfo.zip")
}
// ErrEmptyDuration empty duration error.
ErrEmptyDuration = func() error {
return fmt.Errorf("duration cannot be empty")
}
// ErrInvalidDuration invalid duration error.
ErrInvalidDuration = func(duration string) error {
return fmt.Errorf("invalid duration %q", duration)
}
// ErrEmptyLayout empty layout error.
ErrEmptyLayout = func() error {
return fmt.Errorf("layout cannot be empty")
}
// ErrMismatchedLayout mismatched layout error.
ErrMismatchedLayout = func(value, layout string) error {
return fmt.Errorf("value %q and layout %q are mismatched", value, layout)
}
// ErrEmptyFormat empty format error.
ErrEmptyFormat = func() error {
return fmt.Errorf("format cannot be empty")
}
// ErrMismatchedFormat mismatched format error.
ErrMismatchedFormat = func(value, format string) error {
return fmt.Errorf("value %q and format %q are mismatched", value, format)
}
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。