Skip to content

add tag unique #300

@ipiao

Description

@ipiao

Package version eg. v8, v9:

v9

Issue, Question or Enhancement:

Question:

  • can you add a tag named unique for that value in slice not repeated,please

Code sample, to showcase or reproduce:

type Settings struct {
    Slice  []string `validate:"unique"`
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions