render

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package render formats and writes generated Go code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path    string
	Content []byte
}

File contains the rendered Go source for a path.

func Format

func Format(specs []Spec) ([]File, error)

Format renders all provided AST files using go/printer and goimports.

type Spec

type Spec struct {
	Path string
	Node *goast.File
	Raw  []byte
}

Spec describes an AST file to render.

Jump to

Keyboard shortcuts

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