(handle string)
| 308 | } |
| 309 | |
| 310 | func (r *MeReplacer) Replace(handle string) (string, error) { |
| 311 | if handle == "@me" { |
| 312 | return r.currentLogin() |
| 313 | } |
| 314 | return handle, nil |
| 315 | } |
| 316 | |
| 317 | func (r *MeReplacer) ReplaceSlice(handles []string) ([]string, error) { |
| 318 | res := make([]string, len(handles)) |