Skip to content

Releases: xis/baraka

v2.0.3 release

29 Aug 21:03
@xis xis
Compare
Choose a tag to compare
parser: fix extra bytes

v2.0.2 release

04 Feb 11:08
@xis xis
52e7d17
Compare
Choose a tag to compare

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

04 Dec 10:48
@xis xis
Compare
Choose a tag to compare

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

04 Dec 10:17
@xis xis
b198634
Compare
Choose a tag to compare

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

13 Aug 11:50
@xis xis
Compare
Choose a tag to compare

fixed saving without extensions
added filtering what data to save with process.StoreWithout

v1.1.0 release

11 Aug 18:46
@xis xis
Compare
Choose a tag to compare

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

18 Jul 12:31
@xis xis
Compare
Choose a tag to compare

added json extracting from request

v1.0.0 release

15 Jul 22:25
@xis xis
Compare
Choose a tag to compare
header comments