(gist gistToUpdate, filename string)
| 436 | } |
| 437 | |
| 438 | func getFilesToRemove(gist gistToUpdate, filename string) (map[string]*gistFileToUpdate, error) { |
| 439 | if _, found := gist.Files[filename]; !found { |
| 440 | return nil, fmt.Errorf("gist has no file %q", filename) |
| 441 | } |
| 442 | |
| 443 | gist.Files[filename] = nil |
| 444 | return map[string]*gistFileToUpdate{ |
| 445 | filename: nil, |
| 446 | }, nil |
| 447 | } |