gitlab.com/evatix-go/core@v1.3.55/coredata/coreapi/SearchRequest.go (about) 1 package coreapi 2 3 type SearchRequest struct { 4 SearchTerm string 5 IsNaturalSearch, IsContains, IsStartsWith, IsEndsWith, IsRegex bool 6 } 7 8 func (receiver *SearchRequest) Clone() *SearchRequest { 9 if receiver == nil { 10 return nil 11 } 12 13 return &SearchRequest{ 14 SearchTerm: receiver.SearchTerm, 15 IsNaturalSearch: receiver.IsNaturalSearch, 16 IsContains: receiver.IsContains, 17 IsStartsWith: receiver.IsStartsWith, 18 IsEndsWith: receiver.IsEndsWith, 19 IsRegex: receiver.IsRegex, 20 } 21 }