stringutil

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, s string) bool

Contains returns true if there is at least one string in `slice` that is equal to `s`.

func StringToTime

func StringToTime(val string) (time.Time, error)

StringToTime parses the given string and returns the resulting time. The expected format is identical to the format returned by Atlas API, documented as ISO 8601 timestamp format in UTC. Example formats: "2023-07-18T16:12:23Z", "2023-07-18T16:12:23.456Z"

Types

This section is empty.

Jump to

Keyboard shortcuts

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