Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Decode ¶
func Decode(source interface{}, destination interface{}, tag string, flag DecoderFlag) error
Decode копирует данные из источника в назначение, поддерживая различные типы данных (структуры, мапы) и их вложенность, используя теги для сопоставления полей.
Types ¶
type DecoderFlag ¶
type DecoderFlag int
const ( DecoderStrongFoundDst DecoderFlag = 0x1 << iota // Error if not found destination DecoderStrongType // Safe source type or error. Explode inner struct to map in map to map DecoderUnwrapStructToMap // Unwrap struct to map )
Click to show internal directories.
Click to hide internal directories.