Go Package sort: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=
* https://pkg.go.dev/sort


* https://golang.org/pkg/sort/
=Internal=
* [[Go_Language_Modularization#sort|Standard library]]


=Internal=
=Overview=


* [[Go Concepts - Standard Library#Packages|Standard Library]]
The package provides primitives for sorting slices of ints and floats and user-defined collections.
<font color=darkkhaki>
The <code>sort</code> package.
<syntaxhighlight lang='go'>
sort.Ints(slice)
sort.Float64s(slice)
sort.Strings(slice)
</syntaxhighlight>
</font>


=Overview=
=Example=


The package provides primitives for sorting slices and user-defined collections.
<font color=red>'''TODO''' Introducing Go page 83.</font>

Revision as of 00:50, 2 September 2023

External

Internal

Overview

The package provides primitives for sorting slices of ints and floats and user-defined collections. The sort package.

sort.Ints(slice)
sort.Float64s(slice)
sort.Strings(slice)

Example

TODO Introducing Go page 83.