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

Method String

const_strings.gen.go:1329–1335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1327var _VCPUHostCPUState_index = [...]uint8{0, 22, 40}
1328
1329func (i VCPUHostCPUState) String() string {
1330 i -= -2
1331 if i < 0 || i >= VCPUHostCPUState(len(_VCPUHostCPUState_index)-1) {
1332 return "VCPUHostCPUState(" + strconv.FormatInt(int64(i+-2), 10) + ")"
1333 }
1334 return _VCPUHostCPUState_name[_VCPUHostCPUState_index[i]:_VCPUHostCPUState_index[i+1]]
1335}
1336func _() {
1337 // An "invalid array index" compiler error signifies that the constant values have changed.
1338 // Re-run the stringer command to generate them again.

Callers

nothing calls this directly

Calls 1

VCPUHostCPUStateTypeAlias · 0.85

Tested by

no test coverage detected