github.com/searKing/golang/go@v1.2.117/encoding/internal/tag/tagger.go (about) 1 // Copyright 2020 The searKing Author. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package tag 6 7 import "reflect" 8 9 func valueTaggeFunc(v reflect.Value) tagFunc { 10 if !v.IsValid() { 11 return invalidValueTagFunc 12 } 13 return typeTagFunc(v.Type()) 14 }