github.com/gogf/gf@v1.16.9/internal/structs/structs.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/gogf/gf. 6 7 // Package structs provides functions for struct information retrieving and struct conversion. 8 // 9 // Inspired and improved from: https://github.com/fatih/structs 10 package structs 11 12 import ( 13 "reflect" 14 ) 15 16 // Type wraps reflect.Type for additional features. 17 type Type struct { 18 reflect.Type 19 } 20 21 // Field contains information of a struct field . 22 type Field struct { 23 Value reflect.Value // The underlying value of the field. 24 Field reflect.StructField // The underlying field of the field. 25 TagValue string // Retrieved tag value. There might be more than one tags in the field, but only one can be retrieved according to calling function rules. 26 }