humane

package module
v0.0.0-...-21ac7a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 4 Imported by: 2

README

go-humane

Package humane provides tools for making data (and how it is presented) more human-friendly, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-humane

GoDoc

Import

To import package humane use import code like the following:

import "github.com/reiver/go-humane"

Installation

To install package humane do the following:

GOPROXY=direct go get github.com/reiver/go-humane

Author

Package humane was written by Charles Iliya Krempeaux

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortStrings

func SortStrings(strings []string)

SortStrings sorts strings in a more human-friendly ordering.

It mostly uses UNICODE ordering, with an exception.

The exception is that, the ordering of these:

0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z

Are changed to:

0
1
2
3
4
5
6
7
8
9
A
a
B
b
C
c
D
d
E
e
F
f
G
g
H
h
I
i
J
j
K
k
L
l
M
m
N
n
O
o
P
p
Q
q
R
r
S
s
T
t
U
u
V
v
W
w
X
x
Y
y
Z
z
:
;
<
=
>
?
@
[
\
]
^
_
`

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL