utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(milliseconds int64) string

func ParseHTTPError

func ParseHTTPError(err error, htt *http.Response) error

func PrettyJSON

func PrettyJSON(j []byte) string

Prints JSON bytes nicely indented, or returns the original bytes as string if it fails

func ServiceFqn

func ServiceFqn(author string, name string, version string) string

func SortByVersion

func SortByVersion(unsorted []string) []string

SortByVersion sorts a slice of strings by semantic version number, highest first

Types

This section is empty.

Jump to

Keyboard shortcuts

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