utils

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyAttribute added in v0.3.0

func KeyAttribute(keys []string) ([]string, map[string]map[string]string)

KeyAttribute handle string, it like key:attr1=xxx:attr2=yyy

func Match

func Match(pattern []string, value string) bool

func ParseTime added in v0.3.0

func ParseTime(str string, loc *time.Location) (time.Time, error)

func ParseTimeSpan

func ParseTimeSpan(span string, now time.Time) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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