khenaidoo | ffe076b | 2019-01-15 16:08:08 -0500 | [diff] [blame^] | 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 | |
| 4 | // +build !go1.4 |
| 5 | |
| 6 | package codec |
| 7 | |
| 8 | // This codec package will only work for go1.4 and above. |
| 9 | // This is for the following reasons: |
| 10 | // - go 1.4 was released in 2014 |
| 11 | // - go runtime is written fully in go |
| 12 | // - interface only holds pointers |
| 13 | // - reflect.Value is stabilized as 3 words |
| 14 | |
| 15 | func init() { |
| 16 | panic("codec: go 1.3 and below are not supported") |
| 17 | } |