template

package
v0.0.0-...-fc26a1d Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: BSD-2-Clause Imports: 14 Imported by: 0

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      *user.User
	Payer        *user.User
	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 interface{}
}

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