ccc

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 4 Imported by: 9

README

ccc

Utility types and functions created and maintained by the CCC team.

Documentation

Overview

package ccc contains utility types and functions

Index

Constants

This section is empty.

Variables

View Source
var NilUUID = UUID{}

Functions

func Ptr

func Ptr[T any](t T) *T

Types

type JSONMap

type JSONMap map[string]any

func (*JSONMap) UnmarshalJSON

func (jM *JSONMap) UnmarshalJSON(b []byte) error

type NullUUID

type NullUUID struct {
	UUID
	Valid bool
}

func NewNullUUID

func NewNullUUID() (NullUUID, error)

func NullUUIDFromString

func NullUUIDFromString(s string) (NullUUID, error)

func NullUUIDFromUUID

func NullUUIDFromUUID(u UUID) NullUUID

func (*NullUUID) DecodeSpanner

func (u *NullUUID) DecodeSpanner(val any) error

func (NullUUID) EncodeSpanner

func (u NullUUID) EncodeSpanner() (any, error)

func (NullUUID) IsNil

func (u NullUUID) IsNil() bool

IsNil implements NullableValue.IsNil for NullUUID.

func (*NullUUID) UnmarshalText

func (u *NullUUID) UnmarshalText(text []byte) error

type UUID

type UUID struct {
	uuid.UUID
}

func NewUUID

func NewUUID() (UUID, error)

func UUIDFromString

func UUIDFromString(s string) (UUID, error)

func (*UUID) DecodeSpanner

func (u *UUID) DecodeSpanner(val any) error

func (UUID) EncodeSpanner

func (u UUID) EncodeSpanner() (any, error)

func (*UUID) UnmarshalText

func (u *UUID) UnmarshalText(text []byte) error

Directories

Path Synopsis
accesstypes module
cache module
ccclint module
columnset module
lint module
linters
otelspanname module
middleware module
patchset module
pkg module
resource module
resourceset module
securehash module
sns module
tracer module

Jump to

Keyboard shortcuts

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