aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-05-28 21:15:28 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-05-28 21:15:28 +0530
commit160496938ebb9a32d0d3d41071a3daaf2480bb33 (patch)
tree2d492289570b394d4ab80c9bd668b36855a35e10
parent80288b7a0330b035a50c5898b566c0163e206316 (diff)
made Search function publicv1.1.0
-rw-r--r--search.go4
-rw-r--r--search_query.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/search.go b/search.go
index 40f495d..acb611e 100644
--- a/search.go
+++ b/search.go
@@ -22,10 +22,10 @@ import (
"strconv"
)
-func search(q SearchQuery) ([]Entry, error) {
+func Search(q SearchQuery) ([]Entry, error) {
var res []Entry
- url, err := q.Build()
+ url, err := q.build()
if err != nil {
return res, err
}
diff --git a/search_query.go b/search_query.go
index ac5e178..b332437 100644
--- a/search_query.go
+++ b/search_query.go
@@ -74,7 +74,7 @@ var (
CategorySoftwareGames = Category{ Category: 6, SubCategory: 2 }
)
-func (q SearchQuery) Build() (string, error) {
+func (q SearchQuery) build() (string, error) {
if q.BaseURL == "" {
q.BaseURL = "nyaa.si"
}