gzuidhof / tygo

Generate Typescript types from Golang source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`iota` with Expressions

moeshin opened this issue · comments

package test_tygo

const (
	A = iota
	B
)

const (
	C = 1 << iota
	D
)
// Code generated by tygo. DO NOT EDIT.

//////////
// source: type.go

export const A = 0;
export const B = 1;
export const C = 1 << iota;
export const D = 1 << iota;