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

validator

package module
v0.0.0-...-e55d542 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: MIT Imports: 5 Imported by: 0

README

Validator

Verbose enough

Install

`go get -u -v github.com/kakilangit/validator`

Dependencies

  • go get -u -v github.com/satori/go.uuid
  • go get -u -v github.com/stretchr/testify

Documentation

Overview

Package validator is for validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist

func Exist(s ...string) error

Exist check string if empty

func FixPhoneNumber

func FixPhoneNumber(input string) (string, error)

FixPhoneNumber will fix any appropriate string to right format

func FloatPositive

func FloatPositive(i ...float64) error

FloatPositive check float if negative or zero

func FloatPositiveFromString

func FloatPositiveFromString(i ...string) error

FloatPositiveFromString ...

func FloatZeroOrPositive

func FloatZeroOrPositive(i ...float64) error

FloatZeroOrPositive check float if negative

func FloatZeroOrPositiveFromString

func FloatZeroOrPositiveFromString(i ...string) error

FloatZeroOrPositiveFromString ...

func ParsePhone

func ParsePhone(input string) (countryCode, phoneNumber string, err error)

ParsePhone ...

func Positive

func Positive(i ...int) error

Positive check int if negative or zero

func PositiveFromString

func PositiveFromString(i ...string) error

PositiveFromString ...

func ZeroOrPositive

func ZeroOrPositive(i ...int) error

ZeroOrPositive check int if negative

func ZeroOrPositiveFromString

func ZeroOrPositiveFromString(i ...string) error

ZeroOrPositiveFromString ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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