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

Method String

const_strings.gen.go:3738–3743  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3736var _StoragePoolState_index = [...]uint8{0, 19, 38, 56, 75, 98}
3737
3738func (i StoragePoolState) String() string {
3739 if i < 0 || i >= StoragePoolState(len(_StoragePoolState_index)-1) {
3740 return "StoragePoolState(" + strconv.FormatInt(int64(i), 10) + ")"
3741 }
3742 return _StoragePoolState_name[_StoragePoolState_index[i]:_StoragePoolState_index[i+1]]
3743}
3744func _() {
3745 // An "invalid array index" compiler error signifies that the constant values have changed.
3746 // Re-run the stringer command to generate them again.

Callers

nothing calls this directly

Calls 1

StoragePoolStateTypeAlias · 0.85

Tested by

no test coverage detected