Skip to content

Commit

Permalink
add len method to orderedMap
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunKoyalwar committed Jun 28, 2023
1 parent 0d5ea81 commit 886d743
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions url/orderedparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ func NewOrderedParams() *OrderedParams {
}
}

// IsEmpty checks if the OrderedParams is empty
func (o *OrderedParams) IsEmpty() bool {
return o.om.IsEmpty()
}

// Add Parameters to store
func (o *OrderedParams) Add(key string, value ...string) {
if arr, ok := o.om.Get(key); ok && len(arr) > 0 {
Expand Down

0 comments on commit 886d743

Please sign in to comment.