data

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package data provides types (interfaces and default implementations) and functionality for generic data (sort of records, maps, ...) handling facilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTimestamp

func FormatTimestamp(t time.Time) string

Types

type Data

type Data f.Map[string, interface{}]

type Timestamp

type Timestamp time.Time

func GetTimestamp

func GetTimestamp(data m.Map, key string) *Timestamp

func GetTimestampDef

func GetTimestampDef(data m.Map, key string, def *Timestamp) *Timestamp

func (*Timestamp) AsTime

func (t *Timestamp) AsTime() *time.Time

func (*Timestamp) MarshalText

func (t *Timestamp) MarshalText() ([]byte, error)

func (*Timestamp) Unix

func (t *Timestamp) Unix() int64

func (*Timestamp) UnmarshalText

func (t *Timestamp) UnmarshalText(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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