render

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package render turns codegen IR into formatted Go source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enums

func Enums(f ir.File) ([]byte, error)

Enums renders only enums for one version into Go source.

func EnumsFile

func EnumsFile(pkg string, enums []ir.Enum) ([]byte, error)

EnumsFile renders shared enums into one package file.

func MessageFile

func MessageFile(pkg string, structs []ir.Struct, enums []ir.Enum, needTime, needDecimal bool) ([]byte, error)

MessageFile renders the structs and enums for a single message file.

func Messages

func Messages(f ir.File) ([]byte, error)

Messages renders the message structs and enums for one version into Go source.

func Profile

func Profile(f ir.File, profileName string) ([]byte, error)

Profile renders the package-level Message vars for one feature profile.

func RegisterFile

func RegisterFile(version string, messages []ir.Message) ([]byte, error)

RegisterFile renders a helper that registers all generated schemas.

func Structs

func Structs(f ir.File) ([]byte, error)

Structs renders only message structs for one version into Go source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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