template

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: MIT Imports: 8 Imported by: ? 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

This section is empty.

Types

type Context added in v1.6.17

type Context struct {
	Key         string            `json:"key"`
	Name        string            `json:"name,omitempty"`
	Exec        string            `json:"exec,omitempty"`
	Version     string            `json:"version"`
	Package     string            `json:"package,omitempty"`
	Args        []string          `json:"args,omitempty"`
	Port        int               `json:"port,omitempty"`
	ConfigVars  util.KeyTypeDescs `json:"configVars,omitempty"`
	PortOffsets map[string]int    `json:"portOffsets,omitempty"`

	Ignore     []string `json:"ignore,omitempty"`
	IgnoreGrep string   `json:"ignoreGrep,omitempty"`
	Modules    []string `json:"modules,omitempty"`
	Tags       []string `json:"tags,omitempty"`

	ExportArgs     *metamodel.Args `json:"exportArgs,omitempty"`
	Config         util.ValueMap   `json:"config,omitempty"`
	Info           *project.Info   `json:"info,omitempty"`
	Build          *project.Build  `json:"build,omitempty"`
	Theme          *theme.Theme    `json:"theme,omitempty"`
	DatabaseEngine string          `json:"databaseEngine,omitempty"`
	Linebreak      string          `json:"-"`
}

func ToTemplateContext

func ToTemplateContext(p *project.Project, configVars util.KeyTypeDescs, portOffsets map[string]int, linebreak string) *Context

func (*Context) Acronyms added in v1.6.17

func (t *Context) Acronyms() string

func (*Context) ArgsQuoted added in v1.7.12

func (t *Context) ArgsQuoted() string

func (*Context) AuditData added in v1.6.17

func (t *Context) AuditData() string

func (*Context) AuditRecordData added in v1.6.17

func (t *Context) AuditRecordData() string

func (*Context) BuildAndroid added in v1.6.17

func (t *Context) BuildAndroid() bool

func (*Context) BuildDesktop added in v1.6.17

func (t *Context) BuildDesktop() bool

func (*Context) BuildIOS added in v1.6.17

func (t *Context) BuildIOS() bool

func (*Context) BuildMobile added in v1.6.17

func (t *Context) BuildMobile() bool

func (*Context) BuildNotarize added in v1.6.17

func (t *Context) BuildNotarize() bool

func (*Context) BuildWASM added in v1.6.17

func (t *Context) BuildWASM() bool

func (*Context) CIContent added in v1.6.17

func (t *Context) CIContent() string

func (*Context) CleanKey added in v1.6.17

func (t *Context) CleanKey() string

func (*Context) CleanName added in v1.6.17

func (t *Context) CleanName() string

func (*Context) ConfigVarsContent added in v1.6.17

func (t *Context) ConfigVarsContent() string

func (*Context) CoreStruct added in v1.6.17

func (t *Context) CoreStruct() string

func (*Context) DangerousOK added in v1.6.17

func (t *Context) DangerousOK() bool

func (*Context) DatabaseUIOpts added in v1.6.17

func (t *Context) DatabaseUIOpts() (bool, bool, bool)

func (*Context) DatabaseUIReadOnly added in v1.6.17

func (t *Context) DatabaseUIReadOnly() bool

func (*Context) DatabaseUISQLEditor added in v1.6.17

func (t *Context) DatabaseUISQLEditor() bool

func (*Context) DatabaseUISaveUser added in v1.6.17

func (t *Context) DatabaseUISaveUser() bool

func (*Context) DockerPackages added in v1.7.2

func (t *Context) DockerPackages() string

func (*Context) ExecSafe added in v1.7.12

func (t *Context) ExecSafe() string

func (*Context) ExtraFilesContent added in v1.6.17

func (t *Context) ExtraFilesContent() string

func (*Context) ExtraFilesDocker added in v1.6.17

func (t *Context) ExtraFilesDocker() string

func (*Context) GoBinaryContent added in v1.6.17

func (t *Context) GoBinaryContent() string

func (*Context) GoBinarySafe added in v1.6.17

func (t *Context) GoBinarySafe() string

func (*Context) GoMajorVersionSafe added in v1.6.17

func (t *Context) GoMajorVersionSafe() string

func (*Context) GoVersionSafe added in v1.6.17

func (t *Context) GoVersionSafe() string

func (*Context) HasAccount added in v1.6.17

func (t *Context) HasAccount() bool

func (*Context) HasDatabase added in v1.7.4

func (t *Context) HasDatabase() bool

func (*Context) HasDatabaseOrMetamodel added in v1.7.10

func (t *Context) HasDatabaseOrMetamodel() bool

func (*Context) HasDocker added in v1.7.10

func (t *Context) HasDocker() bool

func (*Context) HasExport added in v1.6.17

func (t *Context) HasExport() bool

func (*Context) HasModule added in v1.6.17

func (t *Context) HasModule(key string) bool

func (*Context) HasModules added in v1.6.17

func (t *Context) HasModules(keys ...string) bool

func (*Context) HasSlack added in v1.6.17

func (t *Context) HasSlack() bool

func (*Context) HasUser added in v1.6.17

func (t *Context) HasUser() bool

func (*Context) IgnoredQuoted added in v1.6.17

func (t *Context) IgnoredQuoted() string

func (*Context) IgnoredSetting added in v1.6.17

func (t *Context) IgnoredSetting() string

func (*Context) IsArmAndMips added in v1.6.17

func (t *Context) IsArmAndMips() bool

func (*Context) IsNotarized added in v1.6.17

func (t *Context) IsNotarized() bool

func (*Context) KeyProper added in v1.6.17

func (t *Context) KeyProper() string

func (*Context) ModuleMarkdown added in v1.6.17

func (t *Context) ModuleMarkdown() string

func (*Context) MySQL added in v1.6.17

func (t *Context) MySQL() bool

func (*Context) MySQLOnly added in v1.7.10

func (t *Context) MySQLOnly() bool

func (*Context) MySQLOrExport added in v1.7.10

func (t *Context) MySQLOrExport() bool

func (*Context) MySQLOrMetamodel added in v1.7.10

func (t *Context) MySQLOrMetamodel() bool

func (*Context) NameCompressed added in v1.6.17

func (t *Context) NameCompressed() string

func (*Context) NotebookPort added in v1.6.17

func (t *Context) NotebookPort() int

func (*Context) Placeholder added in v1.6.17

func (t *Context) Placeholder(idx int) string

func (*Context) PortIncremented added in v1.6.17

func (t *Context) PortIncremented(i int) int

func (*Context) PostgreSQL added in v1.6.17

func (t *Context) PostgreSQL() bool

func (*Context) PostgreSQLOnly added in v1.7.10

func (t *Context) PostgreSQLOnly() bool

func (*Context) PostgreSQLOrExport added in v1.7.10

func (t *Context) PostgreSQLOrExport() bool

func (*Context) PostgreSQLOrMetamodel added in v1.7.10

func (t *Context) PostgreSQLOrMetamodel() bool

func (*Context) Private added in v1.6.17

func (t *Context) Private() bool

func (*Context) Public added in v1.6.17

func (t *Context) Public() bool

func (*Context) SQLServer added in v1.6.17

func (t *Context) SQLServer() bool

func (*Context) SQLServerOnly added in v1.6.17

func (t *Context) SQLServerOnly() bool

func (*Context) SQLServerOrExport added in v1.7.10

func (t *Context) SQLServerOrExport() bool

func (*Context) SQLServerOrMetamodel added in v1.7.10

func (t *Context) SQLServerOrMetamodel() bool

func (*Context) SQLite added in v1.6.17

func (t *Context) SQLite() bool

func (*Context) SQLiteOnly added in v1.7.10

func (t *Context) SQLiteOnly() bool

func (*Context) SQLiteOrExport added in v1.7.10

func (t *Context) SQLiteOrExport() bool

func (*Context) SQLiteOrMetamodel added in v1.7.10

func (t *Context) SQLiteOrMetamodel() bool

func (*Context) ServicesConstructor added in v1.6.17

func (t *Context) ServicesConstructor() string

func (*Context) ServicesDefinition added in v1.6.17

func (t *Context) ServicesDefinition() string

func (*Context) ServicesImports added in v1.6.17

func (t *Context) ServicesImports() string

func (*Context) SourceTrimmed added in v1.6.17

func (t *Context) SourceTrimmed() string

func (*Context) Title added in v1.6.17

func (t *Context) Title() string

func (*Context) TypeScriptProjectContent added in v1.6.17

func (t *Context) TypeScriptProjectContent() string

func (*Context) TypeUUID added in v1.6.17

func (t *Context) TypeUUID() string

func (*Context) UsesLib added in v1.6.17

func (t *Context) UsesLib() bool

Jump to

Keyboard shortcuts

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