Skip to content

Commit 364672b

Browse files
author
Dean Karn
committed
update private field opt-in comment
1 parent cec504f commit 364672b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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="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-10.18.0-green.svg)
4+
![Project status](https://img.shields.io/badge/version-10.19.0-green.svg)
55
[![Build Status](https://travis-ci.org/go-playground/validator.svg?branch=master)](https://travis-ci.org/go-playground/validator)
66
[![Coverage Status](https://coveralls.io/repos/go-playground/validator/badge.svg?branch=master&service=github)](https://coveralls.io/github/go-playground/validator?branch=master)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/validator)](https://goreportcard.com/report/github.com/go-playground/validator)

options.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ func WithRequiredStructEnabled() Option {
1515
}
1616
}
1717

18-
// WithPrivateFieldValidation activates validation for unexported fields
18+
// WithPrivateFieldValidation activates validation for unexported fields via the use of the `unsafe` package.
1919
//
20-
// It's experimental feature that partially uses unsafe package
20+
// By opting into this feature you are acknowledging that you are aware of the risks and accept any current or future
21+
// consequences of using this feature.
2122
func WithPrivateFieldValidation() Option {
2223
return func(v *Validate) {
2324
v.privateFieldValidation = true

0 commit comments

Comments
 (0)