Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e37318

Browse files
committed
chore: rename getServerURL to ServerURL
1 parent5fdb78b commit2e37318

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎codersdk/toolsdk/chatgpt.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func createObjectID(objectType ObjectType, id string) ObjectID {
4949
}
5050

5151
funcsearchTemplates(ctx context.Context,depsDeps,querystring) ([]SearchResultItem,error) {
52-
serverURL:=deps.getServerURL()
52+
serverURL:=deps.ServerURL()
5353
templates,err:=deps.coderClient.Templates(ctx, codersdk.TemplateFilter{
5454
SearchQuery:query,
5555
})
@@ -69,7 +69,7 @@ func searchTemplates(ctx context.Context, deps Deps, query string) ([]SearchResu
6969
}
7070

7171
funcsearchWorkspaces(ctx context.Context,depsDeps,querystring) ([]SearchResultItem,error) {
72-
serverURL:=deps.getServerURL()
72+
serverURL:=deps.ServerURL()
7373
workspaces,err:=deps.coderClient.Workspaces(ctx, codersdk.WorkspaceFilter{
7474
FilterQuery:query,
7575
})
@@ -344,7 +344,7 @@ func fetchWorkspace(ctx context.Context, deps Deps, workspaceID string) (FetchRe
344344
ID:workspace.ID.String(),
345345
Title:workspace.Name,
346346
Text:string(workspaceJSON),
347-
URL:fmt.Sprintf("%s/%s/%s",deps.getServerURL(),workspace.OwnerName,workspace.Name),
347+
URL:fmt.Sprintf("%s/%s/%s",deps.ServerURL(),workspace.OwnerName,workspace.Name),
348348
},nil
349349
}
350350

@@ -365,7 +365,7 @@ func fetchTemplate(ctx context.Context, deps Deps, templateID string) (FetchResu
365365
ID:template.ID.String(),
366366
Title:template.DisplayName,
367367
Text:string(templateJSON),
368-
URL:fmt.Sprintf("%s/templates/%s/%s",deps.getServerURL(),template.OrganizationName,template.Name),
368+
URL:fmt.Sprintf("%s/templates/%s/%s",deps.ServerURL(),template.OrganizationName,template.Name),
369369
},nil
370370
}
371371

‎codersdk/toolsdk/toolsdk.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type Deps struct {
5858
reportfunc(ReportTaskArgs)error
5959
}
6060

61-
func (dDeps)getServerURL()string {
61+
func (dDeps)ServerURL()string {
6262
serverURLCopy:=*d.coderClient.URL
6363
serverURLCopy.Path=""
6464
serverURLCopy.RawQuery=""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp