xdbstruct

package
v0.0.0-...-b44f12a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package xdbstruct provides utilities for converting Go structs to XDB records and vice versa.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotStruct is returned when ToRecord is called with a non-struct argument.
	ErrNotStruct = errors.New("encoding/xdbstruct: ToRecord expects a pointer to a struct")
)

Functions

func FromRecord

func FromRecord(record *core.Record, obj any) error

FromRecord converts a core.Record to a struct.

func ToRecord

func ToRecord(obj any) (*core.Record, error)

ToRecord converts a struct to a core.Record.

Types

This section is empty.

Jump to

Keyboard shortcuts

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