BestHub
Discover
Artificial IntelligenceBackend DevelopmentMobile DevelopmentProduct ManagementCloud NativeFrontend DevelopmentFundamentalsBig DataCloud ComputingGame DevelopmentR&D ManagementOperationsDatabasesInformation SecurityBlockchainUser Experience DesignInterview ExperienceIndustry Insights
View all →
TopicsTagsTrendsRanking
Sign in
Discover
Artificial Intelligence Backend Development Mobile Development Product Management Cloud Native Frontend Development Fundamentals Big Data Cloud Computing Game Development R&D Management Operations Databases Information Security Blockchain User Experience Design Interview Experience Industry Insights View all →
TopicsTagsTrendsRanking
Sign in
  1. Home
  2. / Tags
  3. / sort package
Radish, Keep Going!
Radish, Keep Going!
Apr 23, 2020 · Backend Development

Master Go’s sort Package: Implement Custom Sorting with Interface

This article explains how Go's sort package internally uses four algorithms, how to implement sort.Interface with Len, Less, and Swap methods, and provides code examples for sorting int slices and custom structs by different fields.

AlgorithmsSliceinterface
0 likes · 5 min read
Master Go’s sort Package: Implement Custom Sorting with Interface
BestHub

Editorial precision for engineers who prefer signal over noise. Deep reads, careful curation, and sharper frontiers in software.

Best Hub for Dev. Power Your Build.
Navigation
Status Discover Tags Topics System Status Privacy Terms Rss Feed