github.com/patricebensoussan/go/codec@v1.2.99/goversion_unsupported_lt_go14.go (about)

     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.4
     5  // +build !go1.4
     6  
     7  package codec
     8  
     9  import "errors"
    10  
    11  // This codec package will only work for go1.4 and above.
    12  // This is for the following reasons:
    13  //   - go 1.4 was released in 2014
    14  //   - go runtime is written fully in go
    15  //   - interface only holds pointers
    16  //   - reflect.Value is stabilized as 3 words
    17  
    18  var errCodecSupportedOnlyFromGo14 = errors.New("codec: go 1.3 and below are not supported")
    19  
    20  func init() {
    21  	panic(errCodecSupportedOnlyFromGo14)
    22  }