gutil_reflect.go 870 B

1234567891011121314151617181920212223242526
  1. // Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
  2. //
  3. // This Source Code Form is subject to the terms of the MIT License.
  4. // If a copy of the MIT was not distributed with this file,
  5. // You can obtain one at https://github.com/gogf/gf.
  6. package gutil
  7. import (
  8. "github.com/gogf/gf/v2/internal/reflection"
  9. )
  10. type (
  11. OriginValueAndKindOutput = reflection.OriginValueAndKindOutput
  12. OriginTypeAndKindOutput = reflection.OriginTypeAndKindOutput
  13. )
  14. // OriginValueAndKind retrieves and returns the original reflect value and kind.
  15. func OriginValueAndKind(value interface{}) (out OriginValueAndKindOutput) {
  16. return reflection.OriginValueAndKind(value)
  17. }
  18. // OriginTypeAndKind retrieves and returns the original reflect type and kind.
  19. func OriginTypeAndKind(value interface{}) (out OriginTypeAndKindOutput) {
  20. return reflection.OriginTypeAndKind(value)
  21. }