Skip to content

v0.2.2

Compare
Choose a tag to compare
@ydnar ydnar released this 04 Oct 00:44
· 312 commits to main since this release
3e89565

Added

  • All struct types in package cm now include structs.HostLayout on Go 1.23 or later.
  • Added type constraints AnyList, AnyResult, and AnyVariant in package cm to constrain generic functions accepting any of those types.
  • Variant types now implement fmt.Stringer, with a String method. Breaking: variant cases named string map to String_ in Go.
  • cm.Option[T] types now have a Value() convenience method that returns the zero value for T if the option represents the none case. For example, this simplifies getting an empty string or slice from option<string> or option<list<T>>, respectively.
  • Added a release workflow to publish tagged releases to GitHub.

Fixed

  • wit-bindgen-go --version now displays the version without empty ().