Releases: xis/baraka
v2.0.3 release
v2.0.2 release
you can get parts with their form names now
added Inspector
added Filter
removed filter function
removed processor
removed informer
request's parts field is a map now
removed Parser interface
v2.0.1 release
v2.0.1 same as v1.2.0, releasing v2 because of the pkg.go.dev cache issues.
please use v2 not v1.
v1.2.0 release
code is now more meaningful
added available slices mechanism to use remaining []byte from the filtered parts
added MaxParseCount variable to limit parse loop
filter function now gets a []byte as a parameter
Storage removed
Marshaler removed
removed Header related things from parser.Parse function,
added Part struct to access data easily
added NewParser function,
Options renamed to ParserOptions,
Parse method removed from Options,
Options struct not implements Parser anymore, parser implements Parser interface now,
parser can be created with NewParser function,
now using Part struct instead of Header,
not using Parts struct anymore, now using Request struct.
v1.1.1 release
fixed saving without extensions
added filtering what data to save with process.StoreWithout
v1.1.0 release
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 filenames
fmt.Println(process.Filenames())
// prints total files count
fmt.Println(process.Length())
// prints content types of files
fmt.Println(process.ContentTypes())
new struct Options for all parsing purposes.
new struct Parts for all file operations.
v1.0.1 release
added json extracting from request
v1.0.0 release
header comments