Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationToString ¶
DurationToString formats a time.Duration as a string with the assumption that a year always has 365 days and a day always has 24h. (The former doesn't work in leap years, the latter is broken by DST switches, not to speak about leap seconds, but those are not even treated properly by the duration strings in the standard library.)
func GraphLinkForExpression ¶
GraphLinkForExpression creates an escaped relative link to the graph view of the provided expression.
func NewDeadlineClient ¶
NewDeadlineClient returns a new http.Client which will time out long running requests.
func StringToDuration ¶
StringToDuration parses a string into a time.Duration, assuming that a year always has 365d, a week 7d, a day 24h. See DurationToString for problems with that.
func TableLinkForExpression ¶
TableLinkForExpression creates an escaped relative link to the table view of the provided expression.
Types ¶
type Set ¶
type Set map[interface{}]struct{}
Set is a type which models a set.
func (Set) Elements ¶
func (s Set) Elements() []interface{}
Elements returns a slice containing all elements in the set.
func (Set) Intersection ¶
Intersection returns a new set with items that exist in both sets.