validator

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatValidationError

func FormatValidationError(err error) string

FormatValidationError validator 에러를 사용자 친화적인 한글 메시지로 변환합니다. 여러 검증 에러가 있을 경우 첫 번째 에러만 반환합니다.

func Get

func Get() *validator.Validate

Get 초기화된 validator 인스턴스를 반환합니다. sync.Once를 사용하여 초기화가 정확히 한 번만 실행되도록 보장합니다.

func Struct

func Struct(s interface{}) error

Struct 구조체의 validation tag를 기반으로 검증을 수행합니다. 검증 실패 시 첫 번째 에러를 반환합니다.

Types

This section is empty.

Jump to

Keyboard shortcuts

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