github.com/wangyougui/gf/v2@v2.6.5/util/gutil/gutil_reflect.go (about)

     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/wangyougui/gf.
     6  
     7  package gutil
     8  
     9  import (
    10  	"github.com/wangyougui/gf/v2/internal/reflection"
    11  )
    12  
    13  type (
    14  	OriginValueAndKindOutput = reflection.OriginValueAndKindOutput
    15  	OriginTypeAndKindOutput  = reflection.OriginTypeAndKindOutput
    16  )
    17  
    18  // OriginValueAndKind retrieves and returns the original reflect value and kind.
    19  func OriginValueAndKind(value interface{}) (out OriginValueAndKindOutput) {
    20  	return reflection.OriginValueAndKind(value)
    21  }
    22  
    23  // OriginTypeAndKind retrieves and returns the original reflect type and kind.
    24  func OriginTypeAndKind(value interface{}) (out OriginTypeAndKindOutput) {
    25  	return reflection.OriginTypeAndKind(value)
    26  }