Subject returns the communication subject for the given parameters
(prefix, class, appName, asterisk string)
| 4 | |
| 5 | // Subject returns the communication subject for the given parameters |
| 6 | func Subject(prefix, class, appName, asterisk string) (ret string) { |
| 7 | ret = fmt.Sprintf("%s%s", prefix, class) |
| 8 | if appName != "" { |
| 9 | ret += "." + appName |
| 10 | if asterisk != "" { |
| 11 | ret += "." + asterisk |
| 12 | } |
| 13 | } |
| 14 | return |
| 15 | } |