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

Method String

const_strings.gen.go:1719–1733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1717)
1718
1719func (i DomainBlockCommitFlags) String() string {
1720 switch {
1721 case 1 <= i && i <= 2:
1722 i -= 1
1723 return _DomainBlockCommitFlags_name_0[_DomainBlockCommitFlags_index_0[i]:_DomainBlockCommitFlags_index_0[i+1]]
1724 case i == 4:
1725 return _DomainBlockCommitFlags_name_1
1726 case i == 8:
1727 return _DomainBlockCommitFlags_name_2
1728 case i == 16:
1729 return _DomainBlockCommitFlags_name_3
1730 default:
1731 return "DomainBlockCommitFlags(" + strconv.FormatInt(int64(i), 10) + ")"
1732 }
1733}
1734func _() {
1735 // An "invalid array index" compiler error signifies that the constant values have changed.
1736 // Re-run the stringer command to generate them again.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected