...

Package stringsx

import "github.com/ory/go-convenience/stringsx"
Overview
Index

Overview ▾

func Coalesce

func Coalesce(str ...string) string

Coalesce returns the first non-empty string value

func Splitx

func Splitx(s, sep string) []string

Splitx is a special case of strings.Split which returns an empty slice if the string is empty