partialread

package
v0.0.0-...-4a002c7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VampOffset = vamp.Size16

	LinesField  = 3
	MatNumField = 1
)

Variables

View Source
var (
	VampOrderLine = vamp.NewRecord(
		vamp.MustNamed("MatName", vamp.NewString(vamp.Size8)),
		vamp.MustNamed("MatNum", vamp.Uint32),
		vamp.MustNamed("Count", vamp.Uint32),
		vamp.MustNamed("Price", vamp.Float64),
	)
	VampOrder = vamp.NewRecord(
		vamp.MustNamed("CustName", vamp.NewString(vamp.Size8)),
		vamp.MustNamed("CustNum", vamp.Uint32),
		vamp.MustNamed("Date", vamp.Int64),
		vamp.MustNamed("Lines", vamp.NewArray(vamp.Size16, VampOrderLine)),
	)
)

Functions

This section is empty.

Types

type Order

type Order struct {
	CustName string
	CustNum  uint32
	Date     time.Time
	Lines    []OrderLine
}

type OrderLine

type OrderLine struct {
	MatName string
	MatNum  uint32
	Count   int
	Price   float64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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