util

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DateFormat  日期格式 yyyy-MM-dd
	DateFormat = "2006-01-02"
	// DateFormat2 日期格式 yyyyMMdd
	DateFormat2 = "20060102"
	// DateFormat3 日期格式 yyMMdd
	DateFormat3 = "060102"

	// TimeFormat 时间格式 yyyy-MM-dd HH:mm:ss
	TimeFormat = "2006-01-02 15:04:05"
	// TimeFormat2 时间格式 yyyyMMddHHmmss
	TimeFormat2 = "20060102150405"

	// Timestamp 时间戳 - 毫秒 时间格式 yyyy-MM-dd HH:mm:ss.SSS
	Timestamp = "2006-01-02 15:04:05.000"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiOnce added in v1.6.6

type MultiOnce struct {
	// contains filtered or unexported fields
}

func (*MultiOnce) Date added in v1.8.6

func (o *MultiOnce) Date() string

func (*MultiOnce) Do added in v1.6.6

func (o *MultiOnce) Do(f func(), today ...func() (newDate string))

func (*MultiOnce) Reset added in v1.6.6

func (o *MultiOnce) Reset()

Directories

Path Synopsis
Package arraylist implements the array list.
Package arraylist implements the array list.
Package arraystack implements a stack backed by array list.
Package arraystack implements a stack backed by array list.
Package avltree implements an AVL balanced binary tree.
Package avltree implements an AVL balanced binary tree.
Package binaryheap implements a binary heap backed by array list.
Package binaryheap implements a binary heap backed by array list.
Package btree implements a B tree.
Package btree implements a B tree.
Package doublylinkedlist implements the doubly-linked list.
Package doublylinkedlist implements the doubly-linked list.
examples
Package hashbidimap implements a bidirectional map backed by two hashmaps.
Package hashbidimap implements a bidirectional map backed by two hashmaps.
Package hashmap implements a map backed by a hash table.
Package hashmap implements a map backed by a hash table.
Package hashset implements a set backed by a hash table.
Package hashset implements a set backed by a hash table.
Package containers provides core interfaces and functions for data structures.
Package containers provides core interfaces and functions for data structures.
Package linkedhashmap is a map that preserves insertion-order.
Package linkedhashmap is a map that preserves insertion-order.
Package linkedhashset is a set that preserves insertion-order.
Package linkedhashset is a set that preserves insertion-order.
Package linkedliststack implements a stack backed by a singly-linked list.
Package linkedliststack implements a stack backed by a singly-linked list.
Package redblacktree implements a red-black tree.
Package redblacktree implements a red-black tree.
Package singlylinkedlist implements the singly-linked list.
Package singlylinkedlist implements the singly-linked list.
Package treebidimap implements a bidirectional map backed by two red-black tree.
Package treebidimap implements a bidirectional map backed by two red-black tree.
Package treemap implements a map backed by red-black tree.
Package treemap implements a map backed by red-black tree.
Package treeset implements a tree backed by a red-black tree.
Package treeset implements a tree backed by a red-black tree.
Package uuid provides implementation of Universally Unique Identifier (UUID).
Package uuid provides implementation of Universally Unique Identifier (UUID).

Jump to

Keyboard shortcuts

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