compiler

package module
v0.0.149 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 20 Imported by: 1

README

Compiler

librería go para compilar proyecto web ejemplo se su uso en fichero compile_test.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo added in v0.0.137

type AppInfo interface {
	AppName() string
	AppVersion() string
}

type Compiler

type Compiler struct {
	*Config

	model.Page

	WORK_FOLDER   string
	BUILT_FOLDER  string
	STATIC_FOLDER string

	DirectoriesRegistered map[string]struct{}
	// contains filtered or unexported fields
}

func Add added in v0.0.137

func Add(conf *Config, options ...string) *Compiler

options ej: no_minify tinygo (wasm compiler) default go menu:<code html here> default "" modules:<code html here> default "" icons:<code html svg sprite icon here> default "" project_dir:test default local run app dir modules_dir:c:\go\modules default HomeUserDir/Packages/go compile_dir:cmd default "" components_dir:c:\go\pkg default HomeUserDir/Packages/go theme_dir:c:\pkg\go\store default:HomeUserDir/Packages/go/platform

func (Compiler) BuildCSS

func (c Compiler) BuildCSS(event_name string) (err string)

func (*Compiler) BuildHTML

func (c *Compiler) BuildHTML(event_name string) (err string)

func (*Compiler) BuildJS

func (c *Compiler) BuildJS(event_name string) (err string)

func (Compiler) BuildWASM

func (c Compiler) BuildWASM(event_name string) (err string)

func (*Compiler) CompileAllProject added in v0.0.2

func (c *Compiler) CompileAllProject()

func (Compiler) Rebuild added in v0.0.18

func (c Compiler) Rebuild() (err string)

func (*Compiler) ThemeDir added in v0.0.18

func (c *Compiler) ThemeDir() string

type Config

type Config struct {
	AppInfo
	TwoPublicKeyAdapter
}

type TwoPublicKeyAdapter added in v0.0.137

type TwoPublicKeyAdapter interface {
	GetTwoPublicKeysWasmClientAndGoServer() map[string]string
}

Jump to

Keyboard shortcuts

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