goversion_unsupported_lt_go14.go 503 B

1234567891011121314151617
  1. // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved.
  2. // Use of this source code is governed by a MIT license found in the LICENSE file.
  3. // +build !go1.4
  4. package codec
  5. // This codec package will only work for go1.4 and above.
  6. // This is for the following reasons:
  7. // - go 1.4 was released in 2014
  8. // - go runtime is written fully in go
  9. // - interface only holds pointers
  10. // - reflect.Value is stabilized as 3 words
  11. func init() {
  12. panic("codec: go 1.3 and below are not supported")
  13. }