package
2.0.3+incompatible
Repository: https://github.com/zew/go-questionnaire.git
Documentation: pkg.go.dev
# Functions
Attrs retrieves the attributes from a path; though file size seems the only use case.
CreateNotExist returns a "not exists" - similar to io package behaviour.
Delete a file.
IsNotExist function for cloudio
we could check err := errors.As(..., &combiErr{}) and then peform errors.Is(err, cloudStoreErr1) errors.Is(err, cloudStoreErr2).
MarshalWriteFile is like WriteFile - but marshals to JSON first; allocates contents of intf into []byte slice.
Md5Str gives MD5 of s.
Open a blob/file fileName in default bucket.
OpenAny tries Open(fileName) for any subdirs and then the appdir ".".
ReadDir is similar to os.ReadDir but returns ListObjects instead of FileInfos; prefix is the path to search into; returned keys will nevertheless consist of path .
ReadFile is the cousin of os.ReadFile Memory allocation for the file contents.
ReadFileUnmarshal is like ReadFile - but unmarshals from JSON afterwards; allocates contents of file into []byte slice.
RenderStaticContent writes the content of subPth into w; *.md files are rendered to HTML; *.html files only get URLs rewriting; static files reside in ./app-bucket/content; files may be differentiated by /[site]/[lang]/subPth subPth is a partial path plus filename.
ServeFileBulk writes a binary file into the response; it's inner body is similar to ReadFile; files > 128 kB are offloaded to ServeFileStream() at hugely reduced memory consumption.
ServeFileStream writes a binary file into the response; it's inner body is similar to ReadFile; the URL for this handler must be exempted from session middleware and logAndRecover middleware - anything buffering the response.
WriteFile is the cousin of os.WriteFile.