govalid
Up to 45x faster. Auto generate type-safe validation code for structs based on markers.
파일 탐색기
- benchmark-sync.yaml
- coverage.yaml
- deploy-docs.yaml
- fmt-check.yaml
- fuzz-on-pr.yaml
- fuzz-report.yaml
- fuzz-test.yaml
- go-mod-check.yaml
- go-vulncheck.yaml
- lint.yaml
- pinact-check.yaml
- release-check.yaml
- tagpr.yaml
- test-code-generation-check.yaml
- unit-test.yaml
- dependabot.yaml
- pull_request_template.md
- release.yml
- govalid-icon.svg
- discovery.go
- generator.go
- initializer.go
- test.go
- template.go
- validator.go
- all.go.tmpl
- govalid_test.go.tmpl
- initializer.go.tmpl
- markers.go.tmpl
- registry_init.go.tmpl
- template.go
- validator.go.tmpl
- main.go
- generator.go
- main.go
- migrate.go
- _index.md
- context-validation.md
- examples.md
- getting-started.md
- validators.md
- baseof.html
- list.html
- single.html
- index.html
- custom.css
- style.css
- .hugo_build.lock
- hugo.toml
- README.md
- go.mod
- user.go
- go.mod
- main.go
- go.work
- go.work.sum
- README.md
- validation.go.tmpl
- alpha.go
- cel.go
- email.go
- enum.go
- gt.go
- gte.go
- ipv4.go
- ipv6.go
- length.go
- lt.go
- lte.go
- maxitems.go
- maxlength.go
- minitems.go
- minlength.go
- multiple.go
- inside.go
- nop.go
- partial.go
- numeric.go
- required.go
- url.go
- uuid.go
- alpha_test_TestAlpha_alpha.golden.go
- cel_test_TestCel_cel.golden.go
- email_test_TestEmail_email.golden.go
- enum_test_TestEnum_enum.golden.go
- gt_test_TestGt_gt.golden.go
- gte_test_TestGte_gte.golden.go
- ipv4_test_TestIpv4_ipv4.golden.go
- ipv6_test_TestIpv6_ipv6.golden.go
- length_test_TestLength_length.golden.go
- lt_test_TestLt_lt.golden.go
- lte_test_TestLte_lte.golden.go
- maxitems_test_TestMaxitems_maxitems.golden.go
- maxlength_test_TestMaxlength_maxlength.golden.go
- minitems_test_TestMinitems_minitems.golden.go
- minlength_test_TestMinlength_minlength.golden.go
- multiple_test_TestMultiple_multiple.golden.go
- nestedstruct_test_func1_inside.golden.go
- nestedstruct_test_func1_nop.golden.go
- nestedstruct_test_func1_partial.golden.go
- numeric_test_TestNumeric_numeric.golden.go
- required_test_TestRequired_required.golden.go
- url_test_TestUrl_url.golden.go
- uuid_test_TestUuid_uuid.golden.go
- alpha_test.go
- cel_test.go
- common_test.go
- email_test.go
- enum_test.go
- gt_test.go
- gte_test.go
- ipv4_test.go
- ipv6_test.go
- length_test.go
- lt_test.go
- lte_test.go
- maxitems_test.go
- maxlength_test.go
- minitems_test.go
- minlength_test.go
- multiple_test.go
- nestedstruct_test.go
- numeric_test.go
- required_test.go
- url_test.go
- uuid_test.go
- doc.go
- embed.go
- govalid.go
- initializer.go
- registry_init.go
- a.go
- b.go
- analyzer.go
- analyzer_test.go
- doc.go
- fact.go
- initializer.go
- markers.go
- registry.go
- config.go
- errors.go
- markers_generated.go
- expr.go
- expr_test.go
- render.go
- all.go
- alpha.go
- cel.go
- email.go
- enum.go
- gt.go
- gte.go
- ipv4.go
- ipv6.go
- length.go
- lt.go
- lte.go
- maxitems.go
- maxlength.go
- minitems.go
- minlength.go
- numeric.go
- required.go
- url.go
- uuid.go
- registry.go
- alpha.go
- cel.go
- email.go
- enum.go
- gt.go
- gte.go
- ipv4.go
- ipv6.go
- length.go
- lt.go
- lte.go
- maxitems.go
- maxlength.go
- minitems.go
- minlength.go
- numeric.go
- required.go
- url.go
- uuid.go
- zero.go
- fieldpath.go
- fieldpath_test.go
- validator.go
- sync-benchmarks.sh
- benchmark_alpha_test.go
- benchmark_cel_concurrent_test.go
- benchmark_cel_test.go
- benchmark_email_test.go
- benchmark_enum_test.go
- benchmark_gt_test.go
- benchmark_gte_test.go
- benchmark_ipv4_test.go
- benchmark_ipv6_test.go
- benchmark_length_test.go
- benchmark_lt_test.go
- benchmark_lte_test.go
- benchmark_maxitems_test.go
- benchmark_maxlength_test.go
- benchmark_minitems_test.go
- benchmark_minlength_test.go
- benchmark_numeric_test.go
- benchmark_required_test.go
- benchmark_url_test.go
- benchmark_uuid_test.go
- README.md
- alpha_test.go
- cel_test.go
- context_cancellation_test.go
- email_test.go
- enum_test.go
- gt_test.go
- gte_test.go
- ipv4_test.go
- ipv6_test.go
- length_test.go
- lt_test.go
- lte_test.go
- maxitems_test.go
- maxlength_test.go
- minitems_test.go
- minlength_test.go
- multiple_errors_test.go
- numeric_test.go
- required_test.go
- url_test.go
- uuid_test.go
- validator_test.go
- go.mod
- go.sum
- marker.go
- marker_alpha_validator.go
- marker_cel_validator.go
- marker_celcrossfield_validator.go
- marker_email_validator.go
- marker_enum_validator.go
- marker_gt_validator.go
- marker_gte_validator.go
- marker_ipv4_validator.go
- marker_ipv6_validator.go
- marker_length_validator.go
- marker_lt_validator.go
- marker_lte_validator.go
- marker_maxitems_validator.go
- marker_maxlength_validator.go
- marker_minitems_validator.go
- marker_minlength_validator.go
- marker_multipleerrors_validator.go
- marker_numeric_validator.go
- marker_required_validator.go
- marker_url_validator.go
- marker_uuid_validator.go
- README.md
- go.mod
- go.sum
- errors.go
- errors_test.go
- fixture.go
- fixture_personrequest_validator.go
- middleware.go
- middleware_test.go
- alpha.go
- alpha_test.go
- email.go
- email_test.go
- numeric.go
- numeric_test.go
- url.go
- url_test.go
- uuid.go
- uuid_test.go
- .gitignore
- .golangci.yaml
- .goreleaser.yml
- .tagpr
- CHANGELOG.md
- CLAUDE.md
- codecov.yml
- CODEOWNERS
- CONTRIBUTING.md
- go.mod
- go.sum
- lefthook.yaml
- LICENSE
- Makefile
- MARKERS.md
- README.md
- validator.go
- version.go
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
git clone
설명 보기 ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
go install
설명 보기 ▼
go install
Compile and install packages named by the import paths.
go install
Compile and install the current package:
go install {{path/to/package}}
Compile and install a specific local package:
go install {{golang.org/x/tools/gopls}}@{{latest}}
Install the latest version of a program, ignoring `go.mod` in the current directory:
uuid
설명 보기 ▼
uuid
범용 고유 식별자(UUID) 생성 및 디코드.
관련 항목: `uuidgen`.
더 많은 정보: <https://manned.org/uuid>.
uuid
UUIDv1 생성 (시간 및 시스템의 하드웨어 주소 기반, 사용 가능한 경우):
uuid -v 4
UUIDv4 생성 (무작위 데이터 기반):
uuid -v 4 -n {{number_of_uuids}}
여러 개의 UUIDv4를 한 번에 생성:
