ids

package
v0.0.0-...-3525705 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SigilUnknown = Sigil(iota)
	SigilLatest  = Sigil(1 << iota)
	SigilHistory
	SigilExternal
	SigilHidden

	SigilMax
	SigilAll = Sigil(^byte(0))
)
View Source
const (

	// TODO remove deprecated
	// keep sorted
	TypeInventoryListJsonV0 = "!inventory_list-json-v0"
	TypeInventoryListV0     = "!inventory_list-v0" // Deprevated
	TypeInventoryListV1     = "!inventory_list-v1"
	TypeInventoryListV2     = "!inventory_list-v2"

	TypeLuaTagV1                              = "!lua-tag-v1" // Deprecated
	TypeLuaTagV2                              = "!lua-tag-v2"
	TypeTomlBlobStoreConfigSftpExplicitV0     = "!toml-blob_store_config_sftp-explicit-v0"
	TypeTomlBlobStoreConfigSftpViaSSHConfigV0 = "!toml-blob_store_config_sftp-ssh_config-v0"
	TypeTomlBlobStoreConfigV0                 = "!toml-blob_store_config-v0"
	TypeTomlBlobStoreConfigV1                 = "!toml-blob_store_config-v1"
	TypeTomlBlobStoreConfigV2                 = "!toml-blob_store_config-v2"
	TypeTomlBlobStoreConfigPointerV0          = "!toml-blob_store_config-pointer-v0"
	TypeTomlBlobStoreConfigVCurrent           = TypeTomlBlobStoreConfigV2
	TypeTomlConfigImmutableV1                 = "!toml-config-immutable-v1" // Deprecated
	TypeTomlConfigImmutableV2                 = "!toml-config-immutable-v2"
	TypeTomlConfigV0                          = "!toml-config-v0" // Deprecated
	TypeTomlConfigV1                          = "!toml-config-v1"
	TypeTomlConfigV2                          = "!toml-config-v2"
	TypeTomlRepoDotenvXdgV0                   = "!toml-repo-dotenv_xdg-v0"
	TypeTomlRepoLocalOverridePath             = "!toml-repo-local_override_path-v0"
	TypeTomlRepoUri                           = "!toml-repo-uri-v0"
	TypeTomlTagV0                             = "!toml-tag-v0" // Deprecated
	TypeTomlTagV1                             = "!toml-tag-v1"
	TypeTomlTypeV0                            = "!toml-type-v0" // Deprecated
	TypeTomlTypeV1                            = "!toml-type-v1"
	TypeTomlWorkspaceConfigV0                 = "!toml-workspace_config-v0"
	TypeTomlWorkspaceConfigVCurrent           = TypeTomlWorkspaceConfigV0
	TypeZettelIdListV0                        = "!zettel_id_list-v0" // not used yet

	// Aliases
	TypeInventoryListVCurrent = TypeInventoryListV2
)
View Source
const RepoIdRegexString = `^(/)?[-a-z0-9_]+$`
View Source
const TagRegexString = `^%?[-a-z0-9_]+$`

Variables

View Source
var Config config
View Source
var ErrEmptyTag = errors.New("empty tag")
View Source
var RepoIdRegex *regexp.Regexp
View Source
var TagRegex *regexp.Regexp
View Source
var (
	TagResetter = sTagResetter
)

Functions

func Contains

func Contains(left, right Id) bool

func ContainsExactly

func ContainsExactly(left, right Id) bool

func DontAbbreviateString

func DontAbbreviateString[VPtr interfaces.Stringer](k VPtr) (string, error)

func DontExpandString

func DontExpandString(v string) (string, error)

func Equals

func Equals(left, right interfaces.ObjectId) (ok bool)

TODO rewrite to use ToSeq comparison

func ErrOnConfig

func ErrOnConfig(value string) (err error)

func ErrOnConfigBytes

func ErrOnConfigBytes(b []byte) (err error)

func Expand

func Expand(
	id *ObjectId,
	abbr Abbr,
) (err error)

func FormattedString

func FormattedString(id Id) string

func GetObjectIdPool

func GetObjectIdPool() interfaces.Pool[ObjectId, *ObjectId]

func HasParentPrefix

func HasParentPrefix(a, b TagStruct) (has bool)

func ITagSeqToTagStructPtrSeq

func ITagSeqToTagStructPtrSeq(itags interfaces.Seq[Tag]) interfaces.Seq[*TagStruct]

func ITagSeqToTagStructSeq

func ITagSeqToTagStructSeq(itags interfaces.Seq[Tag]) interfaces.Seq[TagStruct]

func IsBuiltin

func IsBuiltin(id interfaces.ObjectId) bool

func IsDependentLeaf

func IsDependentLeaf(a TagStruct) (has bool)

func IsEmpty

func IsEmpty(id Id) bool

func IsErrInvalid

func IsErrInvalid(err error) bool

func IsErrInvalidSigil

func IsErrInvalidSigil(err error) bool

func IsVirtual

func IsVirtual(id Id) bool

func LeftSubtract

func LeftSubtract[
	ID interfaces.Stringer,
	ID_PTR interfaces.StringSetterPtr[ID],
](
	base, toSubtract ID,
) (c ID, err error)

func MakeTypeString

func MakeTypeString(value string) string

func MakeTypeStruct

func MakeTypeStruct(value string) (tipe typeStruct, err error)

func MustTypeStruct

func MustTypeStruct(value string) (tipe typeStruct)

func SeqIdCompare

func SeqIdCompare(left, right objectId3) cmp.Result

func SetObjectIdOrBlob

func SetObjectIdOrBlob(
	id *ObjectId,
	other interfaces.ObjectId,
) (err error)

func SetOnlyNotUnknownGenre

func SetOnlyNotUnknownGenre(
	id *ObjectId,
	value string,
) (err error)

func SetWithGenre

func SetWithGenre(
	id *ObjectId,
	value string,
	genre interfaces.GenreGetter,
) (err error)

func SetWithString

func SetWithString(
	id *ObjectId,
	value string,
) pkgError

func SigilFieldFunc

func SigilFieldFunc(c rune) (ok bool)

func TagEquals

func TagEquals(left, right Tag) bool

func TagIsVirtual

func TagIsVirtual(tag Tag) bool

func TagSetMutableAdd

func TagSetMutableAdd(set TagSetMutable, itag Tag)

func TagStructSeqToITag

func TagStructSeqToITag(tags interfaces.Seq[TagStruct]) interfaces.Seq[Tag]

func TokenIsConfig

func TokenIsConfig(token doddish.Token) bool

TODO move to doddish

func ValidateSeqAndGetGenre

func ValidateSeqAndGetGenre(
	seq doddish.Seq,
) (genre genres.Genre, err error)

Types

type Abbr

type Abbr struct {
	BlobId   interfaces.Abbreviator
	ZettelId interfaces.Abbreviator
}

func (Abbr) AbbreviateObjectId

func (a Abbr) AbbreviateObjectId(
	in *ObjectId,
	out *ObjectId,
) (err error)

func (Abbr) AbbreviateZettelIdOnly

func (a Abbr) AbbreviateZettelIdOnly(
	in *ObjectId,
) (err error)

func (Abbr) ExpandZettelIdOnly

func (a Abbr) ExpandZettelIdOnly(
	in *ObjectId,
) (err error)

func (Abbr) ExpanderFor

func (a Abbr) ExpanderFor(g genres.Genre) interfaces.FuncExpandString

type BuiltinType

type BuiltinType struct {
	TypeStruct
	genres.Genre
	Default bool
}

func Get

func GetOrPanic

func GetOrPanic(idString string) BuiltinType

type Clock

type Clock interface {
	GetTai() Tai
}

type ErrInvalidId

type ErrInvalidId string

func (ErrInvalidId) Error

func (e ErrInvalidId) Error() string

func (ErrInvalidId) Is

func (e ErrInvalidId) Is(err error) (ok bool)

type ExternalObjectId

type ExternalObjectId struct {
	// contains filtered or unexported fields
}

func MakeExternalObjectId

func MakeExternalObjectId(genre genres.Genre, value string) *ExternalObjectId

func (*ExternalObjectId) AppendBinary

func (id *ExternalObjectId) AppendBinary(bites []byte) ([]byte, error)

func (*ExternalObjectId) GetExternalObjectId

func (id *ExternalObjectId) GetExternalObjectId() interfaces.ExternalObjectId

func (*ExternalObjectId) GetGenre

func (id *ExternalObjectId) GetGenre() interfaces.Genre

func (*ExternalObjectId) IsEmpty

func (id *ExternalObjectId) IsEmpty() bool

func (*ExternalObjectId) MarshalBinary

func (id *ExternalObjectId) MarshalBinary() (bites []byte, err error)

func (*ExternalObjectId) Reset

func (id *ExternalObjectId) Reset()

func (*ExternalObjectId) ResetWith

func (id *ExternalObjectId) ResetWith(src *ExternalObjectId)

func (*ExternalObjectId) Set

func (id *ExternalObjectId) Set(value string) (err error)

func (*ExternalObjectId) SetBlob

func (id *ExternalObjectId) SetBlob(v string) (err error)

func (*ExternalObjectId) SetGenre

func (id *ExternalObjectId) SetGenre(genre interfaces.Genre) (err error)

func (*ExternalObjectId) SetObjectIdLike

func (id *ExternalObjectId) SetObjectIdLike(other Id) (err error)

func (*ExternalObjectId) SetWithGenre

func (id *ExternalObjectId) SetWithGenre(
	value string,
	genre interfaces.Genre,
) (err error)

func (*ExternalObjectId) String

func (id *ExternalObjectId) String() string

func (*ExternalObjectId) ToSeq

func (id *ExternalObjectId) ToSeq() doddish.Seq

func (*ExternalObjectId) ToType

func (id *ExternalObjectId) ToType() TypeStruct

func (*ExternalObjectId) UnmarshalBinary

func (id *ExternalObjectId) UnmarshalBinary(bites []byte) (err error)

type Field

type Field struct {
	// contains filtered or unexported fields
}

func (*Field) SetCatgutString

func (f *Field) SetCatgutString(v *catgut.String) (err error)

type Genre

type Genre byte

func MakeGenre

func MakeGenre(vs ...genres.Genre) (s Genre)

func MakeGenreAll

func MakeGenreAll() Genre

func (*Genre) Add

func (genre *Genre) Add(bs ...genres.Genre)

func (*Genre) AddString

func (genre *Genre) AddString(v string) (err error)

func (Genre) Byte

func (genre Genre) Byte() byte

func (Genre) Contains

func (genre Genre) Contains(b interfaces.GenreGetter) bool

func (Genre) ContainsOneOf

func (genre Genre) ContainsOneOf(b interfaces.GenreGetter) bool

func (*Genre) Del

func (genre *Genre) Del(b interfaces.GenreGetter)

func (Genre) Equals

func (genre Genre) Equals(b Genre) bool

func (Genre) IsEmpty

func (genre Genre) IsEmpty() bool

func (Genre) ReadByte

func (genre Genre) ReadByte() (byte, error)

func (*Genre) ReadFrom

func (genre *Genre) ReadFrom(r io.Reader) (n int64, err error)

func (*Genre) ReadFromBoxScanner

func (genre *Genre) ReadFromBoxScanner(
	scanner *doddish.Scanner,
) (err error)

func (*Genre) Reset

func (genre *Genre) Reset()

func (*Genre) ResetWith

func (genre *Genre) ResetWith(b Genre)

func (*Genre) Set

func (genre *Genre) Set(v string) (err error)

func (Genre) Slice

func (genre Genre) Slice() []genres.Genre

func (Genre) String

func (genre Genre) String() string

func (*Genre) WriteTo

func (genre *Genre) WriteTo(w io.Writer) (n int64, err error)

type Id

type Id interface {
	interfaces.ObjectId
	encoding.BinaryMarshaler
	encoding.BinaryAppender

	ToSeq() doddish.Seq
	ToType() TypeStruct
	IsEmpty() bool
}

type IdMutable

type IdMutable interface {
	Id
	encoding.BinaryUnmarshaler
	// SetWithGenre(string, interfaces.GenreGetter) error
	SetWithSeq(doddish.Seq) error
}

type InlineTypeChecker

type InlineTypeChecker interface {
	IsInlineType(Type) bool
}

TODO rename to BinaryTypeChecker and flip uses

type ObjectId

type ObjectId = objectId2

func MakeObjectId

func MakeObjectId(value string) (objectId *ObjectId, err error)

func MustObjectId

func MustObjectId(idWithParts Id) (id *ObjectId)

type ObjectIdGetter

type ObjectIdGetter interface {
	GetObjectId() *ObjectId
}

type ProbeId

type ProbeId struct {
	Key string
	Id  interfaces.MarklId
}

type ProbeIdWithObjectId

type ProbeIdWithObjectId struct {
	ProbeId
	ObjectId *ObjectId
}

type Provider

type Provider interface {
	MakeZettelIdFromCoordinates(i coordinates.Int) (string, error)
}

type RepoId

type RepoId struct {
	// contains filtered or unexported fields
}

func MakeRepoId

func MakeRepoId(v string) (e *RepoId, err error)

func MustRepoId

func MustRepoId(v string) (e *RepoId)

func (RepoId) AppendBinary

func (id RepoId) AppendBinary(text []byte) ([]byte, error)

func (RepoId) Equals

func (id RepoId) Equals(b RepoId) bool

func (RepoId) EqualsRepoId

func (id RepoId) EqualsRepoId(kg interfaces.RepoIdGetter) bool

func (RepoId) GetGenre

func (id RepoId) GetGenre() interfaces.Genre

func (RepoId) GetObjectIdString

func (id RepoId) GetObjectIdString() string

func (RepoId) GetQueryPrefix

func (id RepoId) GetQueryPrefix() string

func (RepoId) GetRepoId

func (id RepoId) GetRepoId() interfaces.RepoId

func (RepoId) GetRepoIdString

func (id RepoId) GetRepoIdString() string

func (RepoId) IsEmpty

func (id RepoId) IsEmpty() bool

func (RepoId) MarshalBinary

func (id RepoId) MarshalBinary() (text []byte, err error)

func (RepoId) MarshalText

func (id RepoId) MarshalText() (text []byte, err error)

func (*RepoId) Reset

func (id *RepoId) Reset()

func (*RepoId) ResetWith

func (id *RepoId) ResetWith(e1 RepoId)

func (*RepoId) Set

func (id *RepoId) Set(v string) (err error)

func (RepoId) String

func (id RepoId) String() string

func (RepoId) StringWithSlashPrefix

func (id RepoId) StringWithSlashPrefix() string

func (RepoId) ToSeq

func (id RepoId) ToSeq() doddish.Seq

func (RepoId) ToType

func (id RepoId) ToType() TypeStruct

func (*RepoId) UnmarshalBinary

func (id *RepoId) UnmarshalBinary(text []byte) (err error)

func (*RepoId) UnmarshalText

func (id *RepoId) UnmarshalText(text []byte) (err error)

type SeqId

type SeqId = objectId3

func MakeType

func MakeType(value string) (tipe SeqId, err error)

func MustType

func MustType(value string) (tipe SeqId)

type Set

type Set[ELEMENT any] interface {
	Len() int
	All() interfaces.Seq[ELEMENT]
	ContainsKey(string) bool
	Get(string) (ELEMENT, bool)
	Key(ELEMENT) string
}

type SetMutable

type SetMutable[ELEMENT any] = interface {
	Set[ELEMENT]

	interfaces.Adder[ELEMENT]
	DelKey(string) error
	interfaces.Resetable
}

type Sigil

type Sigil byte

func MakeSigil

func MakeSigil(vs ...Sigil) (s Sigil)

func (*Sigil) Add

func (sigil *Sigil) Add(b Sigil)

func (Sigil) Byte

func (sigil Sigil) Byte() byte

func (Sigil) Contains

func (sigil Sigil) Contains(b Sigil) bool

func (Sigil) ContainsOneOf

func (sigil Sigil) ContainsOneOf(b Sigil) bool

func (*Sigil) Del

func (sigil *Sigil) Del(b Sigil)

func (Sigil) Equals

func (sigil Sigil) Equals(b Sigil) bool

func (Sigil) GetGenre

func (sigil Sigil) GetGenre() interfaces.Genre

func (Sigil) IncludesExternal

func (sigil Sigil) IncludesExternal() bool

func (Sigil) IncludesHidden

func (sigil Sigil) IncludesHidden() bool

func (Sigil) IncludesHistory

func (sigil Sigil) IncludesHistory() bool

func (Sigil) IncludesLatest

func (sigil Sigil) IncludesLatest() bool

func (Sigil) IsEmpty

func (sigil Sigil) IsEmpty() bool

func (Sigil) IsLatestOrUnknown

func (sigil Sigil) IsLatestOrUnknown() bool

func (Sigil) ReadByte

func (sigil Sigil) ReadByte() (byte, error)

func (*Sigil) ReadFrom

func (sigil *Sigil) ReadFrom(r io.Reader) (n int64, err error)

func (*Sigil) Reset

func (sigil *Sigil) Reset()

func (*Sigil) ResetWith

func (sigil *Sigil) ResetWith(b Sigil)

func (*Sigil) Set

func (sigil *Sigil) Set(v string) (err error)

func (*Sigil) SetByte

func (sigil *Sigil) SetByte(r byte) (err error)

func (Sigil) String

func (sigil Sigil) String() string

func (*Sigil) WriteTo

func (sigil *Sigil) WriteTo(w io.Writer) (n int64, err error)

type Slice

type Slice[ELEMENT any] = collections_slice.Slice[ELEMENT]

type StringerSansOp

type StringerSansOp struct {
	Id Id
}

func (StringerSansOp) String

func (stringer StringerSansOp) String() string

type StringerSansRepo

type StringerSansRepo struct {
	Id Id
}

func (*StringerSansRepo) String

func (stringer *StringerSansRepo) String() string

type Tag

type Tag = Id

type TagSet

type TagSet = Set[TagStruct]
var TagSetEmpty TagSet

func CloneTagSet

func CloneTagSet(tags TagSet) TagSet

TODO move to quiter

func IntersectPrefixes

func IntersectPrefixes(haystack TagSet, needle TagStruct) (s3 TagSet)

func MakeTagSetFromISeq

func MakeTagSetFromISeq(itags interfaces.Seq[Tag]) (s TagSet)

func MakeTagSetFromISlice

func MakeTagSetFromISlice(itags ...Tag) (s TagSet)

func MakeTagSetFromSlice

func MakeTagSetFromSlice(tags ...TagStruct) (s TagSet)

TODO move to quiter

func MakeTagSetStrings

func MakeTagSetStrings(tagStrings ...string) (s TagSet, err error)

TODO move to quiter

func SubtractPrefix

func SubtractPrefix(input TagSet, tag TagStruct) (output TagSet)

type TagSetMutable

type TagSetMutable = SetMutable[TagStruct]

func CloneTagSetMutable

func CloneTagSetMutable(tags TagSet) TagSetMutable

TODO move to quiter

func MakeTagSetMutable

func MakeTagSetMutable(tags ...TagStruct) TagSetMutable

TODO move to quiter

type TagSlice

type TagSlice = collections_slice.Slice[TagStruct]

type TagStruct

type TagStruct = tagStruct

func MakeTag

func MakeTag(value string) (TagStruct, error)

func MustTag

func MustTag(value string) TagStruct

func MustTagPtr

func MustTagPtr(value string) *TagStruct

func (TagStruct) GetObjectIdString

func (tag TagStruct) GetObjectIdString() string

type Tai

type Tai struct {
	// contains filtered or unexported fields
}

func NowTai

func NowTai() Tai

func TaiFromTime

func TaiFromTime(t1 thyme.Time) (t2 Tai)

func TaiFromTime1

func TaiFromTime1(t1 time.Time) (t2 Tai)

func TaiFromTimeWithIndex

func TaiFromTimeWithIndex(t1 thyme.Time, n int) (t2 Tai)

func (Tai) After

func (tai Tai) After(b Tai) bool

func (Tai) AppendBinary

func (tai Tai) AppendBinary(text []byte) ([]byte, error)

func (Tai) AsTime

func (tai Tai) AsTime() (t1 thyme.Time)

func (Tai) Before

func (tai Tai) Before(b Tai) bool

func (Tai) Equals

func (tai Tai) Equals(t1 Tai) bool

func (Tai) Format

func (tai Tai) Format(v string) string

func (Tai) GetGenre

func (tai Tai) GetGenre() interfaces.Genre

func (Tai) GetObjectIdString

func (tai Tai) GetObjectIdString() string

func (Tai) GetTai

func (tai Tai) GetTai() Tai

func (Tai) IsEmpty

func (tai Tai) IsEmpty() (ok bool)

func (Tai) IsZero

func (tai Tai) IsZero() (ok bool)

func (Tai) Less

func (tai Tai) Less(t1 Tai) bool

func (Tai) MarshalBinary

func (tai Tai) MarshalBinary() (text []byte, err error)

func (Tai) MarshalText

func (tai Tai) MarshalText() (text []byte, err error)

func (Tai) Parts

func (tai Tai) Parts() [3]string

func (*Tai) ReadFrom

func (tai *Tai) ReadFrom(r io.Reader) (n int64, err error)

func (*Tai) Reset

func (tai *Tai) Reset()

func (*Tai) ResetWith

func (tai *Tai) ResetWith(b Tai)

func (*Tai) Set

func (tai *Tai) Set(value string) (err error)

func (*Tai) SetFromRFC3339

func (tai *Tai) SetFromRFC3339(v string) (err error)

func (Tai) SortCompare

func (tai Tai) SortCompare(t1 Tai) cmp.Result

func (Tai) String

func (tai Tai) String() (v string)

func (Tai) StringBoxFormat

func (tai Tai) StringBoxFormat() string

func (Tai) StringDefaultFormat

func (tai Tai) StringDefaultFormat() string

func (Tai) ToSeq

func (id Tai) ToSeq() doddish.Seq

func (Tai) ToType

func (id Tai) ToType() TypeStruct

func (*Tai) UnmarshalBinary

func (tai *Tai) UnmarshalBinary(text []byte) (err error)

func (*Tai) UnmarshalText

func (tai *Tai) UnmarshalText(text []byte) (err error)

func (Tai) WriteTo

func (tai Tai) WriteTo(w io.Writer) (n int64, err error)

type TaiRFC3339Value

type TaiRFC3339Value Tai

func MakeTaiRFC3339Value

func MakeTaiRFC3339Value(t Tai) *TaiRFC3339Value

func (*TaiRFC3339Value) Set

func (t *TaiRFC3339Value) Set(v string) (err error)

func (*TaiRFC3339Value) String

func (t *TaiRFC3339Value) String() string

type Type

type Type = Id

type TypeMutable

type TypeMutable = IdMutable

type TypeMutableSet

type TypeMutableSet = interfaces.SetMutable[TypeStruct]

func MakeMutableTypeSet

func MakeMutableTypeSet(hs ...TypeStruct) TypeMutableSet

func MakeTypeMutableSet

func MakeTypeMutableSet(hs ...TypeStruct) TypeMutableSet

type TypeSet

type TypeSet = interfaces.Set[TypeStruct]

func MakeTypeSet

func MakeTypeSet(es ...TypeStruct) (s TypeSet)

func MakeTypeSetStrings

func MakeTypeSetStrings(vs ...string) (s TypeSet, err error)

type TypeStruct

type TypeStruct = typeStruct

func Default

func Default(genre genres.Genre) (TypeStruct, bool)

func DefaultOrPanic

func DefaultOrPanic(genre genres.Genre) TypeStruct

func ObjectIdToTypeStruct

func ObjectIdToTypeStruct(id interfaces.ObjectId) TypeStruct

type TypedBlob

type TypedBlob[T any] struct {
	Type TypeStruct
	Blob T
}

type ZettelId

type ZettelId struct {
	// contains filtered or unexported fields
}

func MakeZettelId

func MakeZettelId(v string) (h *ZettelId, err error)

func MakeZettelIdFromHeadAndTail

func MakeZettelIdFromHeadAndTail(head, tail string) (h *ZettelId, err error)

func MakeZettelIdFromProvidersAndCoordinates

func MakeZettelIdFromProvidersAndCoordinates(
	coordinate coordinates.Int,
	leftProvider Provider,
	rightProvider Provider,
) (h *ZettelId, err error)

TODO-P3 is this really necessary?;w

func MustZettelId

func MustZettelId(v string) (h *ZettelId)

func NewZettelIdEmpty

func NewZettelIdEmpty() ZettelId

func (ZettelId) AppendBinary

func (id ZettelId) AppendBinary(text []byte) ([]byte, error)

func (ZettelId) Equals

func (id ZettelId) Equals(b ZettelId) bool

func (ZettelId) GetGenre

func (id ZettelId) GetGenre() interfaces.Genre

func (ZettelId) GetHead

func (id ZettelId) GetHead() string

func (ZettelId) GetObjectIdString

func (id ZettelId) GetObjectIdString() string

func (ZettelId) GetTail

func (id ZettelId) GetTail() string

func (ZettelId) IsEmpty

func (id ZettelId) IsEmpty() bool

func (ZettelId) Less

func (id ZettelId) Less(j ZettelId) bool

func (ZettelId) MarshalBinary

func (id ZettelId) MarshalBinary() (text []byte, err error)

func (ZettelId) MarshalText

func (id ZettelId) MarshalText() (text []byte, err error)

func (*ZettelId) Reset

func (id *ZettelId) Reset()

func (*ZettelId) ResetWith

func (id *ZettelId) ResetWith(h1 ZettelId)

func (*ZettelId) Set

func (id *ZettelId) Set(value string) (err error)

TODO switch to doddish.Seq

func (*ZettelId) SetWithSeq

func (id *ZettelId) SetWithSeq(seq doddish.Seq) (err error)

func (ZettelId) String

func (id ZettelId) String() string

func (ZettelId) ToSeq

func (id ZettelId) ToSeq() doddish.Seq

func (ZettelId) ToType

func (id ZettelId) ToType() TypeStruct

func (*ZettelId) UnmarshalBinary

func (id *ZettelId) UnmarshalBinary(text []byte) (err error)

func (*ZettelId) UnmarshalText

func (id *ZettelId) UnmarshalText(text []byte) (err error)

type ZettelIdMutableSet

type ZettelIdMutableSet = interfaces.SetMutable[ZettelId]

func MakeZettelIdMutableSet

func MakeZettelIdMutableSet(hs ...ZettelId) ZettelIdMutableSet

type ZettelIdSet

type ZettelIdSet = interfaces.Set[ZettelId]

Source Files

  • abbr.go
  • clock.go
  • collections.go
  • errors.go
  • external_object_id.go
  • field.go
  • genre.go
  • id_stringer.go
  • konfig.go
  • main.go
  • object_id2.go
  • object_id3.go
  • probe_id.go
  • registry.go
  • repo_id.go
  • sigil.go
  • tag.go
  • tag_collections.go
  • tai.go
  • type.go
  • type_collections.go
  • typed_blob.go
  • types_builtin.go
  • zettel_id.go
  • zettel_id_collections.go

Jump to

Keyboard shortcuts

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