pkg

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Maybe

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

func Just

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

func (Maybe[T]) Get

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

func (*Maybe[T]) Set

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

type PetTag

type PetTag struct {
	V string
}

func (PetTag) MarshalJSON

func (p PetTag) MarshalJSON() ([]byte, error)

func (*PetTag) SetFromSchemaString

func (p *PetTag) SetFromSchemaString(s string) error

func (PetTag) String

func (p PetTag) String() string

func (*PetTag) UnmarshalJSON

func (p *PetTag) UnmarshalJSON(v []byte) error

type ShopType

type ShopType struct {
	V string
}

func (*ShopType) ParseString

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

func (ShopType) String

func (s ShopType) String() string

func (ShopType) Strings

func (s ShopType) Strings() []string

Jump to

Keyboard shortcuts

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