Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
ffdea266
Commit
ffdea266
authored
7 years ago
by
Chelsea Holland Komlo
Browse files
Options
Download
Email Patches
Plain Diff
update comment for revised contexts
parent
3319fb58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/search.go
+1
-2
api/search.go
with
1 addition
and
2 deletions
+1
-2
api/search.go
+
1
-
2
View file @
ffdea266
...
@@ -13,8 +13,7 @@ func (c *Client) Search() *Search {
...
@@ -13,8 +13,7 @@ func (c *Client) Search() *Search {
return
&
Search
{
client
:
c
}
return
&
Search
{
client
:
c
}
}
}
// PrefixSearch returns a list of matches for a particular context and prefix. If a
// PrefixSearch returns a list of matches for a particular context and prefix.
// context is not specified, matches for all contexts are returned.
func
(
s
*
Search
)
PrefixSearch
(
prefix
string
,
context
contexts
.
Context
)
(
*
SearchResponse
,
error
)
{
func
(
s
*
Search
)
PrefixSearch
(
prefix
string
,
context
contexts
.
Context
)
(
*
SearchResponse
,
error
)
{
var
resp
SearchResponse
var
resp
SearchResponse
req
:=
&
SearchRequest
{
Prefix
:
prefix
,
Context
:
context
}
req
:=
&
SearchRequest
{
Prefix
:
prefix
,
Context
:
context
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help