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

Method String

const_strings.gen.go:1311–1316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1309var _VCPUState_index = [...]uint8{0, 11, 22, 33}
1310
1311func (i VCPUState) String() string {
1312 if i < 0 || i >= VCPUState(len(_VCPUState_index)-1) {
1313 return "VCPUState(" + strconv.FormatInt(int64(i), 10) + ")"
1314 }
1315 return _VCPUState_name[_VCPUState_index[i]:_VCPUState_index[i+1]]
1316}
1317func _() {
1318 // An "invalid array index" compiler error signifies that the constant values have changed.
1319 // Re-run the stringer command to generate them again.

Callers 1

RemoteURIFunction · 0.45

Calls 1

VCPUStateTypeAlias · 0.85

Tested by

no test coverage detected