pkg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment added in v0.1.29

type Environment struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*Environment) UnmarshalJSON added in v0.1.29

func (m *Environment) UnmarshalJSON(bs []byte) error

type Environments added in v0.1.29

type Environments []Environment

type Maybe added in v0.1.29

type Maybe[T any] struct {
	IsSet bool
	Value T
}

func Just added in v0.1.29

func Just[T any](v T) Maybe[T]

func Nothing added in v0.1.29

func Nothing[T any]() Maybe[T]

func (Maybe[T]) Get added in v0.1.29

func (m Maybe[T]) Get() (zero T, _ bool)

func (*Maybe[T]) Set added in v0.1.29

func (m *Maybe[T]) Set(v T)

type Metadata added in v0.1.29

type Metadata struct {
	InternalID string
}

func (*Metadata) UnmarshalJSON added in v0.1.29

func (m *Metadata) UnmarshalJSON(bs []byte) error

type Nullable added in v0.1.29

type Nullable[T any] struct {
	IsSet bool
	Value T
}

func Null added in v0.1.29

func Null[T any]() Nullable[T]

func Pointer added in v0.1.29

func Pointer[T any](v T) Nullable[T]

func (Nullable[T]) Get added in v0.1.29

func (m Nullable[T]) Get() (zero T, _ bool)

func (Nullable[T]) MarshalJSON added in v0.1.29

func (m Nullable[T]) MarshalJSON() ([]byte, error)

func (*Nullable[T]) Set added in v0.1.29

func (m *Nullable[T]) Set(v T)

func (*Nullable[T]) UnmarshalJSON added in v0.1.29

func (m *Nullable[T]) UnmarshalJSON(bs []byte) error

type Page

type Page string

func (*Page) ParseString added in v0.1.15

func (s *Page) ParseString(v string) error

func (Page) String

func (s Page) String() string

type PageCustomTypeQuery

type PageCustomTypeQuery string

func (*PageCustomTypeQuery) ParseString added in v0.1.15

func (s *PageCustomTypeQuery) ParseString(v string) error

func (PageCustomTypeQuery) String

func (s PageCustomTypeQuery) String() string

type Settings added in v0.1.29

type Settings struct {
	Theme Maybe[string] `json:"theme"`
}

func (*Settings) UnmarshalJSON added in v0.1.29

func (m *Settings) UnmarshalJSON(bs []byte) error

type Shop added in v0.1.23

type Shop string

func (*Shop) ParseString added in v0.1.23

func (s *Shop) ParseString(str string) error

func (Shop) String added in v0.1.23

func (s Shop) String() string

Jump to

Keyboard shortcuts

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