Skip to content

ezpkg/typez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gopherz

ezpkg.io/typez

PkgGoDev GitHub License version

Package typez provides generic functions for working with types.

Installation

go get -u ezpkg.io/typez@v0.2.2

Examples

typez.In(1, 1, 2, 3)    // true
typez.In("A", "B", "C") // false

type A struct{X int}
typez.Coalesce(0, 1, 2, 3) // 1
typez.Coalesce(nil, &A{10}, &A{20}) // &A{10}

About ezpkg.io

As I work on various Go projects, I often find myself creating utility functions, extending existing packages, or developing packages to solve specific problems. Moving from one project to another, I usually have to copy or rewrite these solutions. So I created this repository to have all these utilities and packages in one place. Hopefully, you'll find them useful as well.

For more information, see the main repository.

Author

Oliver Nguyen  github

About

Generic functions for working with types.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages