internal

package
v0.5.28 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemainingKeys

func RemainingKeys(s interface{}, m map[string]interface{}) (extras map[string]interface{})

RemainingKeys will inspect a struct and compare it to a map. Any struct field that does not have a JSON tag that matches a key in the map or a matching lower-case field in the map will be returned as an extra.

This is useful for determining the extra fields returned in response bodies for resources that can contain an arbitrary or dynamic number of fields.

Types

This section is empty.

Directories

Path Synopsis
Package build contains internal methods for building request parts: query string, headers, body.
Package build contains internal methods for building request parts: query string, headers, body.
Package extract contains functions for extracting JSON results into given structure or slice pointers.
Package extract contains functions for extracting JSON results into given structure or slice pointers.
Package multierr contains simple implementation of multiple error handling.
Package multierr contains simple implementation of multiple error handling.

Jump to

Keyboard shortcuts

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