Debian Codegraph @

codec/helper_not_unsafe_not_gc.go

raw symbols SCIP
1 // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved.
2 // Use of this source code is governed by a MIT license found in the LICENSE file.
3
4 //go:build !go1.9 || safe || codec.safe || appengine || !gc
5 // +build !go1.9 safe codec.safe appengine !gc
6
7 package codec
8
9 import "reflect"
10
11 // This files contains safe versions of the code where the unsafe versions are not supported
12 // in either gccgo or gollvm.
13 //
14 // - rvType:
15 // reflect.toType is not supported in gccgo, gollvm.
16
17 func rvType(rv reflect.Value) reflect.Type {
18 return rv.Type()
19 }