utils

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNestedString

func GetNestedString(obj map[string]interface{}, fields ...string) string

GetNestedString returns the string value of a nested field. Returns "" if value is not found or not a string.

func RemoveDuplicateForStringSlice

func RemoveDuplicateForStringSlice(elements []string) []string

RemoveDuplicateForStringSlice returns a new slice with duplicate elements removed.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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