silkgen

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package silkgen shares source generation between the IDE and command-line generator. It does not import GUI factories or initialize native windows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBuildName

func DefaultBuildName(input string) string

DefaultBuildName keeps already-valid stems stable, treating punctuation and spaces as word boundaries. Unicode letters and digits remain intact.

func GenerateSource

func GenerateSource(input, packageName, functionName string, tree *decl.Node) ([]byte, error)

GenerateSource produces the complete, formatted Go file for a widget tree. An empty functionName derives a safe Build-prefixed name from input.

Types

This section is empty.

Jump to

Keyboard shortcuts

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