Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmartPool/smartpool-client
/ Len
Method
Len
protocol/claim.go:12–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
type
Shares []smartpool.Share
11
12
func
(s Shares) Len() int {
return
len(s) }
13
func
(s Shares) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
14
func
(s Shares) Less(i, j int) bool {
15
return
s[i].Counter().Cmp(s[j].Counter()) == -1
Callers
2
NumShares
Method · 0.80
Finalize
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected