Help us shape the future of Go! Take the 2026 Go Developer Survey

scv

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 3 Imported by: 1

README

scv

String Case Validator for Go.

Module name is an acronym for String Case Validator.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(value string, stringCase StringCase) error

func ValidateMapKeys

func ValidateMapKeys[V any](value map[string]V, stringCase StringCase) error

func ValidateMapValues

func ValidateMapValues[K comparable, V any](value map[K]V, stringCase StringCase) error

Types

type StringCase

type StringCase int
const (
	Snake StringCase = iota
	Kebab
	UpperCamel
	LowerCamel
)

Jump to

Keyboard shortcuts

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