From e1a435f6aff6342371c243028380f640824a6c2f Mon Sep 17 00:00:00 2001 From: Ananth Bhaskararaman Date: Wed, 18 Dec 2024 04:13:32 +0530 Subject: [PATCH] fix: Qualify constant names --- login1/scheduleshutdowntype_string.go | 12 ++++++------ login1/types.go | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/login1/scheduleshutdowntype_string.go b/login1/scheduleshutdowntype_string.go index d76abd7..a01cd87 100644 --- a/login1/scheduleshutdowntype_string.go +++ b/login1/scheduleshutdowntype_string.go @@ -8,12 +8,12 @@ func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} - _ = x[PowerOff-0] - _ = x[DryPowerOff-1] - _ = x[Reboot-2] - _ = x[DryReboot-3] - _ = x[Halt-4] - _ = x[DryHalt-5] + _ = x[ScheduleTypePowerOff-0] + _ = x[ScheduleTypeDryPowerOff-1] + _ = x[ScheduleTypeReboot-2] + _ = x[ScheduleTypeDryReboot-3] + _ = x[ScheduleTypeHalt-4] + _ = x[SceduleTypeDryHalt-5] } const _ScheduleShutdownType_name = "poweroffdry-poweroffrebootdry-reboothaltdry-halt" diff --git a/login1/types.go b/login1/types.go index 0811ede..7851b0b 100644 --- a/login1/types.go +++ b/login1/types.go @@ -5,12 +5,12 @@ package login1 type ScheduleShutdownType int const ( - PowerOff ScheduleShutdownType = iota // poweroff - DryPowerOff // dry-poweroff - Reboot // reboot - DryReboot // dry-reboot - Halt // halt - DryHalt // dry-halt + ScheduleTypePowerOff ScheduleShutdownType = iota // poweroff + ScheduleTypeDryPowerOff // dry-poweroff + ScheduleTypeReboot // reboot + ScheduleTypeDryReboot // dry-reboot + ScheduleTypeHalt // halt + SceduleTypeDryHalt // dry-halt ) const (