nested_objects

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	Email *string `json:"email,omitempty"`
	ID    string  `json:"id"`
	Name  string  `json:"name"`
}

type LineItem

type LineItem struct {
	Price     float64 `json:"price"`
	ProductID string  `json:"productId"`
	Quantity  int     `json:"quantity"`
}

type Order

type Order struct {
	Customer Customer   `json:"customer"`
	ID       string     `json:"id"`
	Items    []LineItem `json:"items"`
	Total    *float64   `json:"total,omitempty"`
}

Jump to

Keyboard shortcuts

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