uri.go 398 B

123456789101112131415161718
  1. // Copyright 2018 Gin Core Team. All rights reserved.
  2. // Use of this source code is governed by a MIT style
  3. // license that can be found in the LICENSE file.
  4. package binding
  5. type uriBinding struct{}
  6. func (uriBinding) Name() string {
  7. return "uri"
  8. }
  9. func (uriBinding) BindURI(m map[string][]string, obj interface{}) error {
  10. if err := mapURI(obj, m); err != nil {
  11. return err
  12. }
  13. return nil
  14. }