types

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Collection

type Collection struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Desc      string    `json:"dsc"`
	CreatedAt time.Time `json:"createdAt"`
}

func NewCollection

func NewCollection(id string) *Collection

func Unmarshal

func Unmarshal(data []byte) (*Collection, error)

func (*Collection) ToBytes

func (collection *Collection) ToBytes() []byte

Jump to

Keyboard shortcuts

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