MCPcopy Create free account
hub / github.com/digitalocean/go-libvirt / String

Method String

const_strings.gen.go:1645–1663  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1643)
1644
1645func (i DomainBlockRebaseFlags) String() string {
1646 switch {
1647 case 1 <= i && i <= 2:
1648 i -= 1
1649 return _DomainBlockRebaseFlags_name_0[_DomainBlockRebaseFlags_index_0[i]:_DomainBlockRebaseFlags_index_0[i+1]]
1650 case i == 4:
1651 return _DomainBlockRebaseFlags_name_1
1652 case i == 8:
1653 return _DomainBlockRebaseFlags_name_2
1654 case i == 16:
1655 return _DomainBlockRebaseFlags_name_3
1656 case i == 32:
1657 return _DomainBlockRebaseFlags_name_4
1658 case i == 64:
1659 return _DomainBlockRebaseFlags_name_5
1660 default:
1661 return "DomainBlockRebaseFlags(" + strconv.FormatInt(int64(i), 10) + ")"
1662 }
1663}
1664func _() {
1665 // An "invalid array index" compiler error signifies that the constant values have changed.
1666 // Re-run the stringer command to generate them again.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected