(gist gistToUpdate, filename string)
| 430 | } |
| 431 | |
| 432 | func getFilesToRemove(gist gistToUpdate, filename string) (map[string]*gistFileToUpdate, error) { |
| 433 | if _, found := gist.Files[filename]; !found { |
| 434 | return nil, fmt.Errorf("gist has no file %q", filename) |
| 435 | } |
| 436 | |
| 437 | gist.Files[filename] = nil |
| 438 | return map[string]*gistFileToUpdate{ |
| 439 | filename: nil, |
| 440 | }, nil |
| 441 | } |