13 lines
228 B
Go
13 lines
228 B
Go
package models
|
|
|
|
func (sq *SearchQuery) IsEmpty() bool {
|
|
isEmpty := sq.Text == "" &&
|
|
sq.Name == "" &&
|
|
sq.Command == "" &&
|
|
sq.Description == "" &&
|
|
len(sq.Tags) < 1 &&
|
|
sq.Cursor == 0 &&
|
|
sq.Limit == 0
|
|
return isEmpty
|
|
}
|