Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
orangecat
ollama
Commits
6707768e
Unverified
Commit
6707768e
authored
May 06, 2024
by
alwqx
Committed by
GitHub
May 05, 2024
Browse files
chore: format go code (#4149)
parent
c78bb76a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
73 deletions
+73
-73
app/tray/wintray/menus.go
app/tray/wintray/menus.go
+71
-71
examples/go-http-generate/main.go
examples/go-http-generate/main.go
+1
-1
types/model/name.go
types/model/name.go
+1
-1
No files found.
app/tray/wintray/menus.go
View file @
6707768e
examples/go-http-generate/main.go
View file @
6707768e
types/model/name.go
View file @
6707768e
...
@@ -161,7 +161,7 @@ func ParseNameBare(s string) Name {
...
@@ -161,7 +161,7 @@ func ParseNameBare(s string) Name {
}
}
scheme
,
host
,
ok
:=
strings
.
Cut
(
s
,
"://"
)
scheme
,
host
,
ok
:=
strings
.
Cut
(
s
,
"://"
)
if
!
ok
{
if
!
ok
{
host
=
scheme
host
=
scheme
}
}
n
.
Host
=
host
n
.
Host
=
host
...
...
Write
Preview
Markdown
is supported
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