util

package
v3.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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