utils

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CX

func CX(classes map[string]bool) string

CX is a helper function to generate a string of class names based on a map of class names and their conditions.

CX is not guaranteed to be ordered, use CXX for that.

func CXX

func CXX(classAndConds ...any) string

CXX takes an alternating string and boolean arguments. Odd values must be string and even values must be boolean.

Function panics if above conditions are not fulfilled.

Example:

utils.CXX("my-0", true, "my-1", cond)

func NextScheduleTime

func NextScheduleTime(in string) (out time.Time)

Types

This section is empty.

Jump to

Keyboard shortcuts

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