update examples link in README (#1789)
This commit is contained in:
		
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							@ -359,7 +359,7 @@ ids: map[b:hello a:1234], names: map[second:tianou first:thinkerou]
 | 
			
		||||
 | 
			
		||||
#### Single file
 | 
			
		||||
 | 
			
		||||
References issue [#774](https://github.com/gin-gonic/gin/issues/774) and detail [example code](examples/upload-file/single).
 | 
			
		||||
References issue [#774](https://github.com/gin-gonic/gin/issues/774) and detail [example code](https://github.com/gin-gonic/examples/tree/master/upload-file/single).
 | 
			
		||||
 | 
			
		||||
`file.Filename` **SHOULD NOT** be trusted. See [`Content-Disposition` on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#Directives) and [#1693](https://github.com/gin-gonic/gin/issues/1693)
 | 
			
		||||
 | 
			
		||||
@ -394,7 +394,7 @@ curl -X POST http://localhost:8080/upload \
 | 
			
		||||
 | 
			
		||||
#### Multiple files
 | 
			
		||||
 | 
			
		||||
See the detail [example code](examples/upload-file/multiple).
 | 
			
		||||
See the detail [example code](https://github.com/gin-gonic/examples/tree/master/upload-file/multiple).
 | 
			
		||||
 | 
			
		||||
```go
 | 
			
		||||
func main() {
 | 
			
		||||
@ -726,7 +726,7 @@ When running the above example using the above the `curl` command, it returns er
 | 
			
		||||
 | 
			
		||||
### Custom Validators
 | 
			
		||||
 | 
			
		||||
It is also possible to register custom validators. See the [example code](examples/custom-validation/server.go).
 | 
			
		||||
It is also possible to register custom validators. See the [example code](https://github.com/gin-gonic/examples/tree/master/custom-validation/server.go).
 | 
			
		||||
 | 
			
		||||
```go
 | 
			
		||||
package main
 | 
			
		||||
@ -790,7 +790,7 @@ $ curl "localhost:8085/bookable?check_in=2018-03-08&check_out=2018-03-09"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
[Struct level validations](https://github.com/go-playground/validator/releases/tag/v8.7) can also be registered this way.
 | 
			
		||||
See the [struct-lvl-validation example](examples/struct-lvl-validations) to learn more.
 | 
			
		||||
See the [struct-lvl-validation example](https://github.com/gin-gonic/examples/tree/master/struct-lvl-validations) to learn more.
 | 
			
		||||
 | 
			
		||||
### Only Bind Query String
 | 
			
		||||
 | 
			
		||||
@ -1280,7 +1280,7 @@ You may use custom delims
 | 
			
		||||
 | 
			
		||||
#### Custom Template Funcs
 | 
			
		||||
 | 
			
		||||
See the detail [example code](examples/template).
 | 
			
		||||
See the detail [example code](https://github.com/gin-gonic/examples/tree/master/template).
 | 
			
		||||
 | 
			
		||||
main.go
 | 
			
		||||
 | 
			
		||||
@ -1654,7 +1654,7 @@ An alternative to endless:
 | 
			
		||||
* [graceful](https://github.com/tylerb/graceful): Graceful is a Go package enabling graceful shutdown of an http.Handler server.
 | 
			
		||||
* [grace](https://github.com/facebookgo/grace): Graceful restart & zero downtime deploy for Go servers.
 | 
			
		||||
 | 
			
		||||
If you are using Go 1.8, you may not need to use this library! Consider using http.Server's built-in [Shutdown()](https://golang.org/pkg/net/http/#Server.Shutdown) method for graceful shutdowns. See the full [graceful-shutdown](./examples/graceful-shutdown) example with gin.
 | 
			
		||||
If you are using Go 1.8, you may not need to use this library! Consider using http.Server's built-in [Shutdown()](https://golang.org/pkg/net/http/#Server.Shutdown) method for graceful shutdowns. See the full [graceful-shutdown](https://github.com/gin-gonic/examples/tree/master/graceful-shutdown) example with gin.
 | 
			
		||||
 | 
			
		||||
```go
 | 
			
		||||
// +build go1.8
 | 
			
		||||
@ -1758,7 +1758,7 @@ func loadTemplate() (*template.Template, error) {
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
See a complete example in the `examples/assets-in-binary` directory.
 | 
			
		||||
See a complete example in the `https://github.com/gin-gonic/examples/tree/master/assets-in-binary` directory.
 | 
			
		||||
 | 
			
		||||
### Bind form-data request with custom struct
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user