hyperstencil

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

hyperstencil is a code generator for generating full specializations of generic functions.

This generator looks for directives of the form

//stencil:generate Name Func[...] A -> B...

Name is the name of the generated function, Func is the generic function that is being copied, and [...] are the explicit generic arguments. The A -> B allow for renaming symbols within the function to specialized versions.

Generated functions are placed in a file called _stencils.go. All files in a package are processed in one go.

Jump to

Keyboard shortcuts

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