exhaustiveswitch

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package exhaustiveswitch generates functions that perform an exhaustive switch over finite set types such as "one-of groups" and enumerations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(code *jen.File, f *scope.File) error

Generate generates switch and map functions for each enum type and one-of group.

Types

This section is empty.

Jump to

Keyboard shortcuts

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