13 lines
164 B
Go
13 lines
164 B
Go
package images
|
|
|
|
import "image"
|
|
|
|
type Image struct {
|
|
image.Image
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
func (i Image) UID() (string, error) {
|
|
return UIDFromPath(i.Path)
|
|
}
|