typeDecl returns the variable declaration as a var statement
()
| 554 | |
| 555 | // typeDecl returns the variable declaration as a var statement |
| 556 | func (b *bmask) typeDecl() string { |
| 557 | return fmt.Sprintf("var %s %s /* %d bits */", b.varname, b.typeName(), b.bitlen) |
| 558 | } |
| 559 | |
| 560 | // typeName returns the type, e.g. "uint8" or "[2]uint64" |
| 561 | func (b *bmask) typeName() string { |
no test coverage detected