mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
feat: update to go1.24 & support listening https (#1002)
* feat: support listening https * refactor * modernize * support snake case in config * more precise control of config fields * update goreleaser config * remove kubeyaml * fix: expose agent_secret * chore
This commit is contained in:
@@ -175,10 +175,10 @@ type pHandlerFunc[S ~[]E, E any] func(c *gin.Context) (*model.Value[S], error)
|
||||
// gorm errors here instead
|
||||
type gormError struct {
|
||||
msg string
|
||||
a []interface{}
|
||||
a []any
|
||||
}
|
||||
|
||||
func newGormError(format string, args ...interface{}) error {
|
||||
func newGormError(format string, args ...any) error {
|
||||
return &gormError{
|
||||
msg: format,
|
||||
a: args,
|
||||
@@ -191,10 +191,10 @@ func (ge *gormError) Error() string {
|
||||
|
||||
type wsError struct {
|
||||
msg string
|
||||
a []interface{}
|
||||
a []any
|
||||
}
|
||||
|
||||
func newWsError(format string, args ...interface{}) error {
|
||||
func newWsError(format string, args ...any) error {
|
||||
return &wsError{
|
||||
msg: format,
|
||||
a: args,
|
||||
|
||||
Reference in New Issue
Block a user