Skip to content

Commit b8ed0fe

Browse files
committed
Menampilkan Error Validasi
2 parents 6c97ae1 + 4b51877 commit b8ed0fe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,18 @@ places to ask questions about the Go language.
4040

4141
[rf]: https://reneefrench.blogspot.com/
4242
[cc3-by]: https://creativecommons.org/licenses/by/3.0/
43+
44+
## Gin Web Framework
45+
46+
Build Status codecov Go Report Card GoDoc Join the chat at https://gitter.im/gin-gonic/gin Sourcegraph Open Source Helpers Release TODOs
47+
48+
Gin is a web framework written in Go (Golang). It features a martini-like API with performance that is up to 40 times faster thanks to httprouter. If you need performance and good productivity, you will love Gin.
49+
50+
https://github.com/gin-gonic/gin
51+
52+
## Model binding and validation
53+
To bind a request body into a type, use model binding. We currently support binding of JSON, XML, YAML and standard form values (foo=bar&boo=baz).
54+
55+
Gin uses https://github.com/go-playground/validator for validation. Check the full docs on tags usage https://godoc.org/github.com/go-playground/validator#hdr-Baked_In_Validators_and_Tags.
56+
57+
Note that you need to set the corresponding binding tag on all fields you want to bind. For example, when binding from JSON, set json:"fieldname".

0 commit comments

Comments
 (0)