parser

package
v0.0.0-...-bafb2d1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(encoded string) (string, error)

DecodeBase64 decodes a base64 string

func MarshalToMap

func MarshalToMap(v interface{}) (map[string]string, error)

MarshalToMap converts an interface to map[string]string (via JSON encoding)

func ParseIPs

func ParseIPs(ips string) (bool, []string)

parse ips passed in string format

func UnmarshalMap

func UnmarshalMap(m *map[string]string, v interface{}) error

UnmarshalMap unmarshal a map[string]string to an interface (via JSON decoding)

Types

This section is empty.

Jump to

Keyboard shortcuts

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