Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

spywiree/unionize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unionize

A tool for generating unions in Go

A fork of zyedidia/unionize.

Install:

go install github.com/spywiree/unionize@latest

Changes:

  • Added an option to generate tagged unions
  • Fixed several bugs

Usage:

Usage: unionize <input> <template-name> <output> <union-name> [flags]

A tool for generating unions in Go

Arguments:
  <input>            input package name
  <template-name>    input template type name
  <output>           output file name
  <union-name>       output union type name

Flags:
  -h, --help      Show context-sensitive help.
  -S, --strict    exit on package errors
  -T, --tagged    generate tagged union

unionize: error: expected "<input> <template-name> <output> <union-name>"

About

A tool for generating unions in Go

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages