Documentation ¶
Index ¶
Constants ¶
View Source
const ( DirProjects = "projects" DirProjectImage = "projectimage" DirUploads = "uploads" FileProjectProfile = "image" PathPlaceholderImage = "static/img/placeholder.svg" )
Variables ¶
This section is empty.
Functions ¶
func GetProjectImagePath ¶
GetProjectImagePath will check if the stored image is present in the data directory. If the image can not be found the path of the placeholder will be returned.
func WriteProjectImageToFile ¶
WriteProjectImageToFile will write the project image to file. The imageSource can either be a base64 encoded string or a relative path to an image. Only if the image is a base64 encoded string (which means the user uploaded a new image) then it will be written in the data/<project name> directory for the project. If the image is a path, the project.Image property will be returned
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.