template

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputHTML

func OutputHTML(args *OutputParams) (*bytes.Buffer, error)

func OutputPDF

func OutputPDF(args *OutputParams) (*bytes.Buffer, error)

func OutputText

func OutputText(args *OutputParams) (*bytes.Buffer, error)

func ReadFromBundle

func ReadFromBundle(path, file string) (string, error)

Types

type Content

type Content struct {
	Order        *order.Order
	Shipper      *order.UserInfo
	Payer        *order.UserInfo
	StrainPrice  int
	PlasmidPrice int
}

func (*Content) IsPlasmid

func (c *Content) IsPlasmid(str string) bool

func (*Content) IsStrain

func (c *Content) IsStrain(str string) bool

func (*Content) OrderTimestamp

func (c *Content) OrderTimestamp() string

func (*Content) PlasmidCost

func (c *Content) PlasmidCost() int

func (*Content) PlasmidItems

func (c *Content) PlasmidItems() int

func (*Content) StrainCost

func (c *Content) StrainCost() int

func (*Content) StrainItems

func (c *Content) StrainItems() int

func (*Content) TotalCost

func (c *Content) TotalCost() int

type EmailContent

type EmailContent struct {
	*Content
	StrainData  []*StrainRows
	PlasmidData []*PlasmidRows
}

type IssueContent

type IssueContent struct {
	StrainInv  [][]string
	PlasmidInv [][]string
	StrainInfo [][]string
	*Content
}

type OutputParams

type OutputParams struct {
	File    string
	Path    string
	Content any
}

type PlasmidRows

type PlasmidRows struct {
	ID      string
	Name    string
	PubInfo []*datasource.PubInfo
}

type StrainRows

type StrainRows struct {
	ID         string
	SysName    string
	Names      string
	Descriptor string
	PubInfo    []*datasource.PubInfo
}

Jump to

Keyboard shortcuts

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