ソースを参照

Remove color.RGB.MarshalJSON()

DarthSim 1 週間 前
コミット
4a23e90376
1 ファイル変更0 行追加4 行削除
  1. 0 4
      vips/color/color.go

+ 0 - 4
vips/color/color.go

@@ -38,10 +38,6 @@ func (c RGB) String() string {
 	return fmt.Sprintf("#%02x%02x%02x", c.R, c.G, c.B)
 }
 
-func (c RGB) MarshalJSON() ([]byte, error) {
-	return []byte(fmt.Sprintf(`"#%02x%02x%02x"`, c.R, c.G, c.B)), nil
-}
-
 func (c RGB) LogValue() slog.Value {
 	return slog.StringValue(c.String())
 }