twomes

package
v0.0.0-...-ebd6d4f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package twomes implements all types and behaviour to facilitate measurement data collection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalISO8601

func UnmarshalISO8601(b []byte) (time.Time, error)

func UnmarshalUnix

func UnmarshalUnix(b []byte) (time.Time, error)

Types

type Error

type Error struct {
	Message string `json:"message"`
}

type Time

type Time time.Time

A Time is a wrapper for time.Time that can be unmarshalled from ISO8601 or unix seconds in JSON.

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) error

Unmarshal JSON to Time. Can be ISO8601 or unix seconds.

Jump to

Keyboard shortcuts

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