Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.84.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAbsPath

func GetAbsPath(manifestDir, pathSpec string) string

func GetStringFromInterface

func GetStringFromInterface(queryParam interface{}) (string, error)

func IsParallelPathSpec

func IsParallelPathSpec(pathSpec []byte) bool

func IsPathSpec

func IsPathSpec(pathSpec []byte) bool

func Max

func Max(x, y int) int

func OpenFileOrUrl

func OpenFileOrUrl(path, rootDir string) (string, io.ReadCloser, error)

OpenFileOrUrl opens either a local file or gives the resp.Body from a remote file

Types

type GenericJson

type GenericJson = interface{}

func RemoveFromJsonArray

func RemoveFromJsonArray(input []GenericJson, removeIndex int) (output []GenericJson)

type JsonArray

type JsonArray = []GenericJson

type JsonBool

type JsonBool = bool

type JsonNumber

type JsonNumber = float64

type JsonObject

type JsonObject = map[string]GenericJson

type JsonString

type JsonString = string

Jump to

Keyboard shortcuts

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