nstrings

package
v0.0.0-...-aa2490a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package nstrings contains utility string functions (nstrings it to not confuse with go std strings)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolFromString

func BoolFromString(arg string) (bool, error)

BoolFromString takes in the string and tries to parse it as a boolean

func CanParseFalseFromString

func CanParseFalseFromString(arg string) bool

CanParseFalseFromString takes in the string and checks it if can be parsed as false

func CanParseTrueFromString

func CanParseTrueFromString(arg string) bool

CanParseTrueFromString takes in the string and checks it if can be parsed as true

func GetBoolLabel

func GetBoolLabel(option bool) string

GetBoolLabel returns disabled if false, enabled otherwise

func GetBools

func GetBools() []string

GetBools returns all supported bool values

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL