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
OpenDAS
ollama
Commits
62f8cda3
"csrc/vscode:/vscode.git/clone" did not exist on "33cbd47086d34bba26c0a007896f3b87f9853479"
Unverified
Commit
62f8cda3
authored
Apr 10, 2024
by
Blake Mizerany
Committed by
GitHub
Apr 10, 2024
Browse files
types/model: remove MarshalText/UnmarshalText from Digest (#3586)
parent
6a1de231
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
types/model/digest.go
types/model/digest.go
+0
-14
No files found.
types/model/digest.go
View file @
62f8cda3
...
...
@@ -38,20 +38,6 @@ func (d Digest) String() string { return d.s }
// ParseName(name).Digest().
func
(
d
Digest
)
IsValid
()
bool
{
return
d
.
s
!=
""
}
// MarshalText implements encoding.TextMarshaler.
func
(
d
Digest
)
MarshalText
()
([]
byte
,
error
)
{
return
[]
byte
(
d
.
String
()),
nil
}
// UnmarshalText implements encoding.TextUnmarshaler.
func
(
d
*
Digest
)
UnmarshalText
(
text
[]
byte
)
error
{
if
d
.
IsValid
()
{
return
errors
.
New
(
"model.Digest: illegal UnmarshalText on valid Digest"
)
}
*
d
=
ParseDigest
(
string
(
text
))
return
nil
}
// LogValue implements slog.Value.
func
(
d
Digest
)
LogValue
()
slog
.
Value
{
return
slog
.
StringValue
(
d
.
String
())
...
...
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