internal

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package internal provide internal types and functions for building and developing awwan, not consumed by user nor the main program.

Index

Constants

This section is empty.

Variables

View Source
var DocConvertOpts = ciigo.ConvertOptions{
	Root:         `_wui/doc`,
	HTMLTemplate: `_wui/doc/template.gohtml`,
}

DocConvertOpts ciigo options for converting markup files.

View Source
var MemfsWui *memfs.MemFS

MemfsWui contains the embedded files under _wui for web-user interface. This variable will initialize by initMemfsWui.

Functions

func Build

func Build() (err error)

Build compile all TypeScript files inside _wui into JavaScript, and all markup files into HTML, and then embed them into "memfs_wui.go" and "memfs_www.go".

func Watch

func Watch()

Watch any update on the .js/.html/.ts files inside the _wui directory. If the .ts files changes it will execute TypeScript compiler, esbuild, to compile the .ts into .js. If the .js or .html files changes it will update the node content and re-generate the Go embed file memfs_wui.go.

Types

This section is empty.

Directories

Path Synopsis
cmd
awwan-internal
Program awwan-internal provides internal commands for developing and building awwan.
Program awwan-internal provides internal commands for developing and building awwan.
www-awwan
Program www-awwan serve the awwan.org website.
Program www-awwan serve the awwan.org website.

Jump to

Keyboard shortcuts

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