File: reflect_go1_20.go

package info (click to toggle)
golang-github-go-viper-mapstructure 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 176 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
//go:build go1.20

package mapstructure

import "reflect"

// TODO: remove once we drop support for Go <1.20
func isComparable(v reflect.Value) bool {
	return v.Comparable()
}