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

Method String

const_strings.gen.go:1747–1752  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1745var _DomainDiskErrorCode_index = [...]uint8{0, 19, 40, 62}
1746
1747func (i DomainDiskErrorCode) String() string {
1748 if i < 0 || i >= DomainDiskErrorCode(len(_DomainDiskErrorCode_index)-1) {
1749 return "DomainDiskErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
1750 }
1751 return _DomainDiskErrorCode_name[_DomainDiskErrorCode_index[i]:_DomainDiskErrorCode_index[i+1]]
1752}
1753func _() {
1754 // An "invalid array index" compiler error signifies that the constant values have changed.
1755 // Re-run the stringer command to generate them again.

Callers

nothing calls this directly

Calls 1

DomainDiskErrorCodeTypeAlias · 0.85

Tested by

no test coverage detected