Skip to content

Commit 3620d3c

Browse files
author
Dean Karn
committed
update docs for FieldWithValue=>VarWithValue
1 parent 36cd0d5 commit 3620d3c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package validator
22
================
33
<img align="right" src="https://raw.githubusercontent.com/go-playground/validator/v9/logo.png">[![Join the chat at https://gitter.im/go-playground/validator](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-playground/validator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4-
![Project status](https://img.shields.io/badge/version-9.9.3-green.svg)
4+
![Project status](https://img.shields.io/badge/version-9.9.4-green.svg)
55
[![Build Status](https://semaphoreci.com/api/v1/joeybloggs/validator/branches/v9/badge.svg)](https://semaphoreci.com/joeybloggs/validator)
66
[![Coverage Status](https://coveralls.io/repos/go-playground/validator/badge.svg?branch=v9&service=github)](https://coveralls.io/github/go-playground/validator?branch=v9)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/validator)](https://goreportcard.com/report/github.com/go-playground/validator)

doc.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ used "eqcsfield" it could be multiple levels down. Example:
9494
9595
// NOTE: when calling validate.Struct(val) topStruct will be the top level struct passed
9696
// into the function
97-
// when calling validate.FieldWithValue(val, field, tag) val will be
97+
// when calling validate.VarWithValue(val, field, tag) val will be
9898
// whatever you pass, struct, field...
9999
// when calling validate.Field(field, tag) val will be nil
100100
@@ -369,7 +369,7 @@ Example #1:
369369
Example #2:
370370
371371
// Validating by field:
372-
validate.FieldWithValue(password, confirmpassword, "eqfield")
372+
validate.VarWithValue(password, confirmpassword, "eqfield")
373373
374374
Field Equals Another Field (relative)
375375
@@ -391,7 +391,7 @@ Examples:
391391
Usage: nefield=Color2
392392
393393
// Validating by field:
394-
validate.FieldWithValue(color1, color2, "nefield")
394+
validate.VarWithValue(color1, color2, "nefield")
395395
396396
Field Does Not Equal Another Field (relative)
397397
@@ -414,7 +414,7 @@ Example #1:
414414
Example #2:
415415
416416
// Validating by field:
417-
validate.FieldWithValue(start, end, "gtfield")
417+
validate.VarWithValue(start, end, "gtfield")
418418
419419
420420
Field Greater Than Another Relative Field
@@ -438,7 +438,7 @@ Example #1:
438438
Example #2:
439439
440440
// Validating by field:
441-
validate.FieldWithValue(start, end, "gtefield")
441+
validate.VarWithValue(start, end, "gtefield")
442442
443443
Field Greater Than or Equal To Another Relative Field
444444
@@ -461,7 +461,7 @@ Example #1:
461461
Example #2:
462462
463463
// Validating by field:
464-
validate.FieldWithValue(start, end, "ltfield")
464+
validate.VarWithValue(start, end, "ltfield")
465465
466466
Less Than Another Relative Field
467467
@@ -484,7 +484,7 @@ Example #1:
484484
Example #2:
485485
486486
// Validating by field:
487-
validate.FieldWithValue(start, end, "ltefield")
487+
validate.VarWithValue(start, end, "ltefield")
488488
489489
Less Than or Equal To Another Relative Field
490490

0 commit comments

Comments
 (0)