util

package
v4.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 2 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixString

func FixString(s string) string

FixString fixes some issues with strings in metadata.

func GetIP

func GetIP() net.IP

GetIP gets the preferred outbound ip of this machine.

func StringAfter

func StringAfter(str, start string) string

StringAfter gets the string after another.

func StringBetween

func StringBetween(str, start, end string) string

StringBetween gets the string in between two other strings, and returns an empty string if not found. It returns the first match.

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