github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/cf/formatters/bools.go (about)

     1  package formatters
     2  
     3  import (
     4  	. "github.com/liamawhite/cli-with-i18n/cf/i18n"
     5  )
     6  
     7  func Allowed(allowed bool) string {
     8  	if allowed {
     9  		return T("allowed")
    10  	}
    11  	return T("disallowed")
    12  }