github.com/Kindred87/Obsidian@v0.0.0-20210809203756-86936424b848/api/html.go (about)

     1  package api
     2  
     3  // SearchGroupsAsStrings converts the SearchGroups field to a 2d string slice.
     4  func (sReq *HTMLSearchRequest) SearchGroupsAsStrings() [][]string {
     5  	out := [][]string{}
     6  
     7  	for _, a := range sReq.SearchGroups {
     8  		out = append(out, a.Values)
     9  	}
    10  
    11  	return out
    12  }