package subject import "fmt" func getStaffValue(val string) string { return fmt.Sprintf("%s.%s", prefixes.Staff, val) } var Staff = struct { GetListStaffInfo string }{ GetListStaffInfo: getStaffValue("get_list_staff_info"), }