Remove debug logging from JSON unmarshalling in CustomTime types
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 25s

This commit is contained in:
2025-07-09 09:48:38 -04:00
parent ed6ee5aacc
commit ebe98e685a

View File

@ -497,7 +497,6 @@ type CustomTime1 struct {
func (ct *CustomTime1) UnmarshalJSON(b []byte) (err error) {
// Use the correct layout string for the desired format
const layout = "2006-01-02T15:04:05"
fmt.Printf("UnmarshalJSON called with: %s\n", string(b))
s := strings.Trim(string(b), "\\\"") // Remove surrounding quotes
if string(b) == "null" {
ct.Time = time.Time{}
@ -516,7 +515,6 @@ type CustomTime2 struct {
func (ct *CustomTime2) UnmarshalJSON(b []byte) (err error) {
// Use the correct layout string for the desired format
const layout = "2006-01-02T15:04:05-0700"
fmt.Printf("UnmarshalJSON called with: %s\n", string(b))
s := strings.Trim(string(b), "\\\"") // Remove surrounding quotes
if string(b) == "null" {
ct.Time = time.Time{}