login returns a user's login, or an empty string for a null user.
(u *client.Actor)
| 327 | |
| 328 | // login returns a user's login, or an empty string for a null user. |
| 329 | func login(u *client.Actor) string { |
| 330 | if u == nil { |
| 331 | return "" |
| 332 | } |
| 333 | return u.Login |
| 334 | } |
| 335 | |
| 336 | // timestamp returns t in RFC 3339 format, or an empty string for a null time. |
| 337 | func timestamp(t *time.Time) string { |
no outgoing calls
no test coverage detected