...

Source file src/github.com/ugorji/go/codec/goversion_arrayof_lt_go15.go

Documentation: github.com/ugorji/go/codec

     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.5
     5  // +build !go1.5
     6  
     7  package codec
     8  
     9  import (
    10  	"errors"
    11  	"reflect"
    12  )
    13  
    14  const reflectArrayOfSupported = false
    15  
    16  var errNoReflectArrayOf = errors.New("codec: reflect.ArrayOf unsupported by this go version")
    17  
    18  func reflectArrayOf(count int, elem reflect.Type) reflect.Type {
    19  	panic(errNoReflectArrayOf)
    20  }
    21  

View as plain text