fieldpath

package
v1.7.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fieldpath supplies methods for extracting fields from objects given a path to a field.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFieldPathAsString

func ExtractFieldPathAsString(obj interface{}, fieldPath string) (string, error)

ExtractFieldPathAsString extracts the field from the given object and returns it as a string. The object must be a pointer to an API type.

func FormatMap added in v1.3.0

func FormatMap(m map[string]string) (fmtStr string)

FormatMap formats map[string]string to a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL