Skip to content

Commit

Permalink
Update readme info about minio pkg
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Kara <[email protected]>
  • Loading branch information
IGLOU-EU committed Jan 13, 2022
1 parent 5dbd249 commit cd79808
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
>https://github.com/minio/minio/tree/master/pkg/wildcard
## Why
This part of Minio project is a very cool, fast and light wildcard pattern matching.
But using it, need to import the full Minio project inside your own ... And this is a cool, but BIG project.
This part of Minio project is a very cool, fast and light wildcard pattern matching.

Originally the purpose of this fork is to give access to this "lib" under Apache license, without import the entire Minio project ...

Two function are available `MatchSimple` and `Match`
- `MatchSimple` only covert `*` usage (he is a bit faster)
Expand All @@ -19,12 +20,20 @@ Two function are available `MatchSimple` and `Match`
I know Regex, but this is a big part, and it is slow (even prepared regex) ...
I know Glob, but most of the time, I only need simple wildcard matching.

From https://github.com/minio/minio/commit/069432566fcfac1f1053677cc925ddafd750730a license change from Apache to GPL

## How to
Using GitHub repo
Using this fork
```sh
go get github.com/IGLOU-EU/go-wildcard@latest
```

Using Official Minio (GNU Affero General Public License 3.0 or later)
>From https://github.com/minio/minio/commit/81d5688d5684bd4d93e7bb691af8cf555a20c28c the minio pkg are moved to https://github.com/minio/pkg
```sh
go get github.com/minio/pkg/wildcard@latest
```

## Quick Example

This example shows a Go file which pattern matching ...
Expand Down

0 comments on commit cd79808

Please sign in to comment.