Versions in this module Expand all Collapse all v1 v1.0.1 Jul 15, 2023 v1.0.0 Feb 26, 2023 Changes in this version + type Image struct + func NewImage(filepath string) (Image, error) + func (i Image) Extension() string + func (i Image) IsGif() bool + func (i Image) IsNotPresentIn(listOfReferences []string) bool + func (i Image) Path() string + type ImageRepository interface + ConvertToWebp func([]Image) error + Delete func(Image) error + Load func() ([]string, error) + type Path struct + func NewPath(filepath string) (Path, error) + func (n Path) Value() string + type Post struct + func NewPost(filepath string, rawContent []byte) (Post, error) + func (p *Post) UpdateImageReferences() + func (p Post) Content() string + func (p Post) Path() string + func (p Post) ReferencedImagePaths() []string + type PostRepository interface + Load func() (map[string][]byte, error) + Write func(Post) error