Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 9.6% on proxy.golang.org
Top 4.2% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : github.com/mileusna/conditional

Package conditinal is go/golang replacement for ternary if/else operator Many languages have ternary operator which makes it easy and short to assign value inline, for example Unfortunately, Go doesn't have ternary operator so the shortest way to write this code in Go would be or if you prefere perhapse more readable but longer version This is where conditional package steps in. It provides fuctions that replaces ternary operator for each basic type in Go Example:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mileusna/conditional
Keywords: condition, conditional, conditional-statements, conditions, go, golang, ifelse, ternary
License: MIT
Latest release: almost 4 years ago
First release: almost 4 years ago
Namespace: github.com/mileusna
Dependent packages: 2
Dependent repositories: 1
Stars: 8 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago

    Loading...
    Readme
    Loading...