utils

package
v0.0.0-...-aaa1511 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(slice []string, s string) bool

Helper functions to check and remove string from a slice of strings.

func DeleteString

func DeleteString(slice []string, s string) []string

Helper functions to delete string from slice of strings.

func PatchJson

func PatchJson(original, changes json) json

Default json package does not support merging two json data This function assumes json data is stored as map[string]interface{} and patches `changes` to `original`

func ReadYamlFromUrl

func ReadYamlFromUrl(urlPath string) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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