add documentation for new base64 validator

pull/32/head
Dean Karn 10 years ago
parent 1d008b4ad2
commit e530eb5470
  1. 8
      doc.go
  2. 3
      validator_test.go

@ -292,15 +292,23 @@ Here is a list of the current built in validators:
This may not conform to all possibilities of any rfc standard, but neither
does any email provider accept all posibilities...
(Usage: email)
url
This validates that a string value contains a valid url
This will accept any url the golang request uri accepts but must contain
a schema for example http:// or rtmp://
(Usage: url)
uri
This validates that a string value contains a valid uri
This will accept any uri the golang request uri accepts (Usage: uri)
base64
This validates that a string value contains a valid base64 value.
Although an empty string is valid base64 this will report an empty string
as an error, if you wish to accept an empty string as valid you can use
this with the omitempty tag. (Usage: base64)
Validator notes:
regex

@ -6,8 +6,7 @@ import (
"testing"
"time"
// "gopkg.in/bluesuncorp/validator.v5"
"github.com/joeybloggs/validator"
"gopkg.in/bluesuncorp/validator.v5"
. "gopkg.in/check.v1"
)

Loading…
Cancel
Save