generator

package
v0.0.0-...-6a7190b Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package generator implements eventheader-gen.

Index

Constants

View Source
const (
	GeneratedMarker = "// Code generated by eventheader-gen; DO NOT EDIT."
)

Variables

This section is empty.

Functions

func Generate

func Generate(config Config) ([]byte, error)

func Write

func Write(config Config) error

Types

type Config

type Config struct {
	Types  []string
	Output string
	Tags   string
	Check  bool
	Dir    string
}

type Diagnostic

type Diagnostic struct {
	Position token.Position
	Message  string
}

func (*Diagnostic) Error

func (d *Diagnostic) Error() string

Jump to

Keyboard shortcuts

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