Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "snippets": [
- {
- "text": "sortby",
- "title": "type bySomeOrder []type",
- "value": "type $1 []$2\n\nfunc(b $1) Len() int { return len(b) }\nfunc(b $1) Swap(i, j int) { b[i],b[j] = b[j],b[i] }\nfunc(b $1) Less(i, j int) bool { return b[i].$3 < b[j].$3 }"
- },
- ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement