修复相关BUG + 增加单元测试, 覆盖率100%

This commit is contained in:
2025-04-20 17:57:01 +08:00
parent 299edfcc9a
commit fb1d6bb34f
19 changed files with 669 additions and 134 deletions

View File

@ -9,12 +9,12 @@ package consts
type HttpScheme string
func (hs *HttpScheme) String() string {
return string(*hs)
func (hs HttpScheme) String() string {
return string(hs)
}
func (hs *HttpScheme) MarshalJSON() ([]byte, error) {
return []byte(hs.String()), nil
func (hs HttpScheme) MarshalJSON() ([]byte, error) {
return []byte(`"` + hs.String() + `"`), nil
}
var (