Versions in this module Expand all Collapse all v0 v0.0.1 Nov 4, 2019 Changes in this version + var ErrFileAlreadyExists = errors.New("File already exist") + var ErrWrongBase64Format = errors.New("Wrong Image Data Format ") + var ErrWrongFormat = errors.New("Wrong Format ") + func SaveBts(bts []byte, fileName string) error + func SavePng(img image.Image, fileName string) error + type ImageData struct + Picture string + Title string + func (im *ImageData) GetPicture() (image.Image, error) + type Media struct + ImageDir string + VideoDir string + func New(imagePath, videoPath string) (im *Media, err error) + func (im *Media) Get(filename string) string + func (im *Media) Image(r *http.Request) (fileName string, err error) + func (im *Media) ListImages() []string + func (im *Media) ListVideos() []VideoInfo + func (im *Media) ListVideosByTime(start, stop int) []VideoInfo + func (im *Media) Video(r *http.Request) (fileName string, err error) + type VideoInfo struct + Duration int + Name string + Start int + Stop int + func ConvertToVideoInfo(raw string) (*VideoInfo, error)