Documentation
¶
Overview ¶
* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0
Index ¶
- func CustomTypeHookFunc() mapstructure.DecodeHookFunc
- func FromMap[T any](m map[string]string, o *T) (err error)
- func FromMapToPointer[T any](m map[string]string, o T) (err error)
- func ToMap[T any](o *T) (m map[string]string, err error)
- func ToMapFromPointer[T any](o T) (m map[string]string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomTypeHookFunc ¶
func CustomTypeHookFunc() mapstructure.DecodeHookFunc
func FromMap ¶
FromMap deserialises a flatten map into a struct using (mapstructure)[https://github.com/go-viper/mapstructure]
func FromMapToPointer ¶
FromMapToPointer is like FromMap but deals with a pointer.
func ToMap ¶
ToMap converts a struct to a flat map using (mapstructure)[https://github.com/go-viper/mapstructure]
Types ¶
This section is empty.