wit-bindgen-cli 0.57.1

CLI tool to generate bindings for WIT documents and the component model.
package export_test_records_to_test

import (
	. "wit_component/test_records_to_test"

	witTypes "go.bytecodealliance.org/pkg/wit/types"
)

func MultipleResults() (uint8, uint16) {
	return 4, 5
}

func SwapTuple(x witTypes.Tuple2[uint8, uint32]) (uint32, uint8) {
	return x.F1, x.F0
}

func RoundtripFlags1(x F1) F1 {
	return x
}

func RoundtripFlags2(x F2) F2 {
	return x
}

func RoundtripFlags3(x Flag8, y Flag16, z Flag32) (Flag8, Flag16, Flag32) {
	return x, y, z
}

func RoundtripRecord1(x R1) R1 {
	return x
}

func Tuple1(x witTypes.Tuple1[uint8]) uint8 {
	return x.F0
}