Return s1 if it is not empty, or else s2.
(s1 string, s2 string)
| 119 | |
| 120 | // Return s1 if it is not empty, or else s2. |
| 121 | func StringElse(s1 string, s2 string) string { |
| 122 | if s1 != "" { |
| 123 | return s1 |
| 124 | } else { |
| 125 | return s2 |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | func CurrentTimeMillis() int64 { |
| 130 | return time.Now().UnixNano() / 1000000 |
no outgoing calls
no test coverage detected