fileContentResponse builds a Contents API object response for a regular file with base64-encoded inline content.
(name, content string)
| 684 | // fileContentResponse builds a Contents API object response for a regular file |
| 685 | // with base64-encoded inline content. |
| 686 | func fileContentResponse(name, content string) map[string]interface{} { |
| 687 | return fileContentResponseBytes(name, []byte(content)) |
| 688 | } |
| 689 | |
| 690 | func fileContentResponseBytes(name string, content []byte) map[string]interface{} { |
| 691 | return map[string]interface{}{ |
no test coverage detected