baraka v1.1.0 Release Notes

Release Date: 2020-08-11 // over 3 years ago
  • removed WithMultipartReader, WithParseMultipartForm options.
    library just uses multipart.Reader() now.
    โž• added ParseButMax function, so you can set a maxFileSize and maxFileCount limit to parser.
    ๐Ÿ›  you can give prefixes when storing the file now.

    process.Store("user\_image\_")// it will be like this in filesystem// user\_image\_1.jpg// user\_image\_2.png// user-image\_3.whatever
    

    ๐Ÿ–จ process.Filenames() for getting names of files
    ๐Ÿ–จ process.ContentTypes() for getting content types of files
    ๐Ÿ–จ process.Length() for getting total count of files

    // prints filenamesfmt.Println(process.Filenames())// prints total files countfmt.Println(process.Length())// prints content types of filesfmt.Println(process.ContentTypes())
    

    ๐Ÿ†• new struct Options for all parsing purposes.
    ๐Ÿ†• new struct Parts for all file operations.