Skip to content

Helper methods for golang primitives (no generics yet).

License

Notifications You must be signed in to change notification settings

gebv/go-primitive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go primitives

Helper methods for golang primitives (no generics yet).

Types:

  • Numbers
    • Int64s
    • Float64s
  • Strings
  • Custom types (satisfying interface)

Tools:

  • Go generate for primitives
    • Numbers
    • Strings
    • Custom types

Methods for array: Exists, Index, Len, Sort, Copy, Uniq, Filter. Methods Sort, Uniq, Filter without allocate.