model

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvoiceData = Invoice{
	InvoiceNumber: "123",
	CreatedAt:     "January 1, 2023",
	DueAt:         "February 1, 2023",
	From: Party{
		Name:         "Sparksuite, Inc.",
		Address:      "12345 Sunny Road",
		CityStateZip: "Sunnyville, TX 12345",
	},
	To: Party{
		Name:    "Acme Corp.",
		Contact: "John Doe",
		Email:   "john@example.com",
	},
	Payment: Payment{
		Method:      "Check",
		CheckNumber: "1000",
	},
	Items: []Item{
		{Description: "Website design", Price: "$300.00", Last: false},
		{Description: "Hosting (3 months)", Price: "$75.00", Last: false},
		{Description: "Domain name (1 year)", Price: "$10.00", Last: true},
	},
	Total: "$385.00",
}

Functions

This section is empty.

Types

type Invoice

type Invoice struct {
	InvoiceNumber string
	CreatedAt     string
	DueAt         string
	From          Party
	To            Party
	Payment       Payment
	Items         []Item
	Total         string
}

type Item

type Item struct {
	Description string
	Price       string
	Last        bool
}

type Party

type Party struct {
	Name         string
	Address      string
	CityStateZip string
	Contact      string
	Email        string
}

type Payment

type Payment struct {
	Method      string
	CheckNumber string
}

Jump to

Keyboard shortcuts

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