I am trying to implement a text search using golang cloud.google.com/go/storage package
fake-gcs-server image is used as a bucket simulation, my structure looks like this:
.
└── test (bucket name)
└── some_file.txt
I’m trying to create a storage.Query object, prefix and delimiter are empty, been trying to form a MatchGlob according to a documentation
Been trying to form a pattern like **test** or *test*
, where test is file name, but it is not working, always outputs me all files.
If it is not possible, should i just iterate over all files, for example, and filter them using regex?
Any help appreciated. Thanks!
501cy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.