package enum type SysCfg string const ( AppName = "app_name" AppLogo = "app_logo" ) func (gt SysCfg) String() string { switch gt { case AppName: return "项目名称" case AppLogo: return "项目logo" default: return "未知" } }