Documentation
¶
Index ¶
- Constants
- func CutInvisibleSeparator(input string) string
- func ReplaceInvisibleSeparator(input, replace string) string
- type DateTime
- func (d *DateTime) CenturyEndTime() time.Time
- func (d *DateTime) CenturyStartTime() time.Time
- func (d *DateTime) Christmas() time.Time
- func (d *DateTime) DayEndTime() time.Time
- func (d *DateTime) DayStartTime() time.Time
- func (d *DateTime) DecadeEndTime() time.Time
- func (d *DateTime) DecadeStartTime() time.Time
- func (d *DateTime) EndOfTenMinutes() time.Time
- func (d *DateTime) FirstSundayOfMonth() time.Time
- func (d *DateTime) FirstSundayOfYear() time.Time
- func (d *DateTime) FirstWeekdayOfMonth(weekday time.Weekday) time.Time
- func (d *DateTime) FirstWeekdayOfYear(weekday time.Weekday) time.Time
- func (d *DateTime) HourEndTime() time.Time
- func (d *DateTime) HourStartTime() time.Time
- func (d *DateTime) LastSundayOfMonth() time.Time
- func (d *DateTime) LastSundayOfYear() time.Time
- func (d *DateTime) LastWeekdayOfMonth(weekday time.Weekday) time.Time
- func (d *DateTime) LastWeekdayOfYear(weekday time.Weekday) time.Time
- func (d *DateTime) MinuteEndTime() time.Time
- func (d *DateTime) MinuteStartTime() time.Time
- func (d *DateTime) MonthEndTime() time.Time
- func (d *DateTime) MonthStartTime() time.Time
- func (d *DateTime) QuarterEndTime() time.Time
- func (d *DateTime) QuarterStartTime() time.Time
- func (d *DateTime) SeasonEndTime() time.Time
- func (d *DateTime) SeasonStartTime() time.Time
- func (d *DateTime) StartOfTenMinutes() time.Time
- func (d *DateTime) String() string
- func (d *DateTime) TheDayIsFirstSundayOfMonth() bool
- func (d *DateTime) WeekEndTime() time.Time
- func (d *DateTime) WeekStartTime() time.Time
- func (d *DateTime) YearEndTime() time.Time
- func (d *DateTime) YearStartTime() time.Time
- type Entity
- type Entry
- type Error
- type H
- type Hash
- func (h Hash[K, V]) Clone() Hash[K, V]
- func (h Hash[K, V]) ForEach(f func(K, V))
- func (h Hash[K, V]) Get(key K) (V, bool)
- func (h Hash[K, V]) HasKey(k K) bool
- func (h Hash[K, V]) IsEmpty() bool
- func (h Hash[K, V]) Keys() []K
- func (h Hash[K, V]) Len() int
- func (h Hash[K, V]) MarshalBinary() (data []byte, err error)
- func (h Hash[K, V]) ParallelForEach(f func(K, V))
- func (h Hash[K, V]) Set(k K, v V)
- func (h Hash[K, V]) String() string
- func (h Hash[K, V]) UnmarshalBinary(data []byte) error
- func (h Hash[K, V]) Values() []V
- type IMap
- type ISlice
- type MP3
- type Map
- func (m Map[V]) Clone() Map[V]
- func (m Map[V]) ForEach(f func(string, V))
- func (m Map[V]) Get(key string) (V, bool)
- func (m Map[V]) HasKey(k string) bool
- func (m Map[V]) IsEmpty() bool
- func (m Map[V]) Keys() []string
- func (m Map[V]) Len() int
- func (m Map[V]) MarshalBinary() (data []byte, err error)
- func (m Map[V]) ParallelForEach(f func(string, V))
- func (m Map[V]) Set(k string, v V)
- func (m Map[V]) String() string
- func (m Map[V]) UnmarshalBinary(data []byte) error
- func (m Map[V]) Values() []V
- type RedisValue
- type Slice
- func (s Slice[T]) Clone() Slice[T]
- func (s Slice[T]) Contain(v T) bool
- func (s Slice[T]) Count(v T) int
- func (s Slice[T]) Find(f func(T) bool) (T, bool)
- func (s Slice[T]) ForEach(f func(T, int))
- func (s Slice[T]) IsEmpty() bool
- func (s Slice[T]) Len() int
- func (s Slice[T]) MarshalBinary() (data []byte, err error)
- func (s Slice[T]) ParallelForEach(f func(T, int))
- func (s Slice[T]) Random() T
- func (s Slice[T]) Shuffle()
- func (s Slice[T]) Sort(less func(i, j int) bool)
- func (s Slice[T]) String() string
- func (s Slice[T]) Swap(i, j int)
- func (s Slice[T]) UnmarshalBinary(data []byte) error
- type ValueMessage
- func (msg ValueMessage[K]) Clone() ValueMessage[K]
- func (msg ValueMessage[K]) ForEach(f func(K, string))
- func (msg ValueMessage[K]) Get(key K) (string, bool)
- func (msg ValueMessage[K]) HasKey(k K) bool
- func (msg ValueMessage[K]) IsEmpty() bool
- func (msg ValueMessage[K]) Keys() []K
- func (msg ValueMessage[K]) Len() int
- func (msg ValueMessage[K]) ParallelForEach(f func(K, string))
- func (msg ValueMessage[K]) Set(k K, v string)
- func (msg ValueMessage[K]) ToSortedSlice() Slice[*Entry[K]]
- func (msg ValueMessage[K]) Values() []string
Constants ¶
View Source
const ( NullSeparator = "\u0000" NBSPSeparator = "\u00A0" ZWNBSPSeparator = "\uFEFF" )
View Source
const (
TagQuodLibetMemo = "QuodLibet::memo"
)
Variables ¶
This section is empty.
Functions ¶
func CutInvisibleSeparator ¶
Types ¶
type DateTime ¶
type DateTime struct {
carbon.Carbon
}
func NewDateTime ¶
func (*DateTime) CenturyEndTime ¶
func (*DateTime) CenturyStartTime ¶
func (*DateTime) DayEndTime ¶
func (*DateTime) DayStartTime ¶
func (*DateTime) DecadeEndTime ¶
func (*DateTime) DecadeStartTime ¶
func (*DateTime) EndOfTenMinutes ¶
func (*DateTime) FirstSundayOfMonth ¶
func (*DateTime) FirstSundayOfYear ¶
func (*DateTime) FirstWeekdayOfMonth ¶
func (*DateTime) FirstWeekdayOfYear ¶
func (*DateTime) HourEndTime ¶
func (*DateTime) HourStartTime ¶
func (*DateTime) LastSundayOfMonth ¶
func (*DateTime) LastSundayOfYear ¶
func (*DateTime) LastWeekdayOfMonth ¶
func (*DateTime) LastWeekdayOfYear ¶
func (*DateTime) MinuteEndTime ¶
func (*DateTime) MinuteStartTime ¶
func (*DateTime) MonthEndTime ¶
func (*DateTime) MonthStartTime ¶
func (*DateTime) QuarterEndTime ¶
func (*DateTime) QuarterStartTime ¶
func (*DateTime) SeasonEndTime ¶
func (*DateTime) SeasonStartTime ¶
func (*DateTime) StartOfTenMinutes ¶
func (*DateTime) TheDayIsFirstSundayOfMonth ¶
func (*DateTime) WeekEndTime ¶
func (*DateTime) WeekStartTime ¶
func (*DateTime) YearEndTime ¶
func (*DateTime) YearStartTime ¶
type Entry ¶ added in v1.1.8
type Entry[V comparable] struct { Value V `json:"value"` Msg string `json:"msg"` }
type Hash ¶
type Hash[K comparable, V any] map[K]V
func (Hash[K, V]) MarshalBinary ¶
func (Hash[K, V]) ParallelForEach ¶
func (h Hash[K, V]) ParallelForEach(f func(K, V))
func (Hash[K, V]) UnmarshalBinary ¶
type MP3 ¶
type MP3 struct { OriginFile string `json:"origin_file"` BPM string `json:"bpm"` Title string `json:"title"` Artist string `json:"artist"` Album string `json:"album"` Memo string `json:"memo"` Length float64 `json:"length"` }
func (*MP3) LoadLength ¶
type Map ¶
func (Map[V]) MarshalBinary ¶
func (Map[V]) ParallelForEach ¶
func (Map[V]) UnmarshalBinary ¶
type RedisValue ¶ added in v1.1.9
type RedisValue interface { encoding.BinaryMarshaler encoding.BinaryUnmarshaler }
RedisValue
@Description: 凡是存储在redis中的结构体,都需要实现这个接口
type Slice ¶
type Slice[T comparable] []T
func (Slice[T]) MarshalBinary ¶
func (Slice[T]) ParallelForEach ¶
func (Slice[T]) UnmarshalBinary ¶
type ValueMessage ¶ added in v1.1.7
type ValueMessage[K constraints.Ordered] map[K]string
func (ValueMessage[K]) Clone ¶ added in v1.2.0
func (msg ValueMessage[K]) Clone() ValueMessage[K]
func (ValueMessage[K]) ForEach ¶ added in v1.1.7
func (msg ValueMessage[K]) ForEach(f func(K, string))
func (ValueMessage[K]) Get ¶ added in v1.1.7
func (msg ValueMessage[K]) Get(key K) (string, bool)
func (ValueMessage[K]) HasKey ¶ added in v1.1.7
func (msg ValueMessage[K]) HasKey(k K) bool
func (ValueMessage[K]) IsEmpty ¶ added in v1.1.7
func (msg ValueMessage[K]) IsEmpty() bool
func (ValueMessage[K]) Keys ¶ added in v1.1.7
func (msg ValueMessage[K]) Keys() []K
func (ValueMessage[K]) Len ¶ added in v1.1.7
func (msg ValueMessage[K]) Len() int
func (ValueMessage[K]) ParallelForEach ¶ added in v1.1.7
func (msg ValueMessage[K]) ParallelForEach(f func(K, string))
func (ValueMessage[K]) Set ¶ added in v1.1.7
func (msg ValueMessage[K]) Set(k K, v string)
func (ValueMessage[K]) ToSortedSlice ¶ added in v1.1.7
func (msg ValueMessage[K]) ToSortedSlice() Slice[*Entry[K]]
func (ValueMessage[K]) Values ¶ added in v1.1.7
func (msg ValueMessage[K]) Values() []string
Click to show internal directories.
Click to hide internal directories.