A Go program to generate a Markdown file with a gallery of images.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: update comments

+2 -2
+2 -2
main.go
··· 103 103 return dst 104 104 } 105 105 106 - // load the image, decodes it, and creates a NRGBA image. 106 + // load the image, and decodes it 107 107 func load(filePath string) (image.Image, error) { 108 108 109 109 imgFile, err := os.Open(filePath) ··· 156 156 Images []ImageElement 157 157 } 158 158 159 - // createMarkdownFile cretes the Markdown file using the template. 159 + // createMarkdownFile create the Markdown file using the template. 160 160 func createMarkdownFile(location string, images *[]ImageElement) error { 161 161 tmpl, err := template.New("gallery").Parse(mdTemplate) 162 162 if err != nil {