Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UnmarshalJSON (0.16 sec)

  1. cmd/xl-storage-format-v1.go

    		Name:      fmt.Sprintf("part.%d", c.PartNumber),
    		Algorithm: c.Algorithm.String(),
    		Hash:      hex.EncodeToString(c.Hash),
    	}
    	return json.Marshal(info)
    }
    
    // UnmarshalJSON - custom checksum info unmarshaller
    func (c *ChecksumInfo) UnmarshalJSON(data []byte) error {
    	var info checksumInfoJSON
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err := json.Unmarshal(data, &info); err != nil {
    		return err
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. soft_delete.go

    		return nil, nil
    	}
    	return n.Time, nil
    }
    
    func (n DeletedAt) MarshalJSON() ([]byte, error) {
    	if n.Valid {
    		return json.Marshal(n.Time)
    	}
    	return json.Marshal(nil)
    }
    
    func (n *DeletedAt) UnmarshalJSON(b []byte) error {
    	if string(b) == "null" {
    		n.Valid = false
    		return nil
    	}
    	err := json.Unmarshal(b, &n.Time)
    	if err == nil {
    		n.Valid = true
    	}
    	return err
    }
    
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Feb 01 06:40:55 UTC 2023
    - 4.5K bytes
    - Viewed (1)
  3. api/go1.21.txt

    pkg log/slog, method (Level) MarshalJSON() ([]uint8, error) #56345
    pkg log/slog, method (Level) MarshalText() ([]uint8, error) #56345
    pkg log/slog, method (Level) String() string #56345
    pkg log/slog, method (*Level) UnmarshalJSON([]uint8) error #56345
    pkg log/slog, method (*Level) UnmarshalText([]uint8) error #56345
    pkg log/slog, method (*LevelVar) Level() Level #56345
    pkg log/slog, method (*LevelVar) MarshalText() ([]uint8, error) #56345
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg encoding/json, type UnmarshalTypeError struct, Type reflect.Type
    pkg encoding/json, type UnmarshalTypeError struct, Value string
    pkg encoding/json, type Unmarshaler interface { UnmarshalJSON }
    pkg encoding/json, type Unmarshaler interface, UnmarshalJSON([]uint8) error
    pkg encoding/json, type UnsupportedTypeError struct
    pkg encoding/json, type UnsupportedTypeError struct, Type reflect.Type
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  5. api/go1.1.txt

    pkg math/big, const MaxBase = 36
    pkg math/big, method (*Int) MarshalJSON() ([]uint8, error)
    pkg math/big, method (*Int) SetUint64(uint64) *Int
    pkg math/big, method (*Int) Uint64() uint64
    pkg math/big, method (*Int) UnmarshalJSON([]uint8) error
    pkg math/big, method (*Rat) Float64() (float64, bool)
    pkg math/big, method (*Rat) SetFloat64(float64) *Rat
    pkg mime/multipart, method (*Writer) SetBoundary(string) error
    pkg net, const FlagBroadcast = 2
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top