Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gogs/gogs
/ ValidOID
Function
ValidOID
internal/lfsutil/oid.go:19–21 ·
view source on GitHub ↗
ValidOID returns true if given oid is valid.
(oid OID)
Source
from the content-addressed store, hash-verified
17
18
// ValidOID returns true if given oid is valid.
19
func
ValidOID(oid OID) bool {
20
return
oidRe.MatchString(string(oid))
21
}
Callers
5
serveVerify
Method · 0.92
verifyOID
Function · 0.92
serveBatch
Function · 0.92
Upload
Method · 0.85
TestValidOID
Function · 0.85
Calls
2
string
Function · 0.85
MatchString
Method · 0.80
Tested by
1
TestValidOID
Function · 0.68