helper

package
v0.4.4-0...-300e47e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogUTCTimeFormat = "2006/01/02 15:04:05"

Functions

func IPAddr

func IPAddr() (net.IP, error)

IPAddr get the local node's ip address

func TrimBy

func TrimBy(str, substr string, count int) string

TrimBy trims the string with provided substring and repeat it multiple times decided by the count. ex. TrimBy("/localhost/caches/abc.txt", "/", 2) will get "caches/abc.txt"

Types

This section is empty.

Jump to

Keyboard shortcuts

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