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: 0 modules, 1 package

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.

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
}

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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