]>
Commit | Line | Data |
---|---|---|
15c0b25d AP |
1 | package hcldec |
2 | ||
3 | import ( | |
4 | "encoding/gob" | |
5 | ) | |
6 | ||
7 | func init() { | |
8 | // Every Spec implementation should be registered with gob, so that | |
9 | // specs can be sent over gob channels, such as using | |
10 | // github.com/hashicorp/go-plugin with plugins that need to describe | |
11 | // what shape of configuration they are expecting. | |
12 | gob.Register(ObjectSpec(nil)) | |
13 | gob.Register(TupleSpec(nil)) | |
14 | gob.Register((*AttrSpec)(nil)) | |
15 | gob.Register((*LiteralSpec)(nil)) | |
16 | gob.Register((*ExprSpec)(nil)) | |
17 | gob.Register((*BlockSpec)(nil)) | |
18 | gob.Register((*BlockListSpec)(nil)) | |
19 | gob.Register((*BlockSetSpec)(nil)) | |
20 | gob.Register((*BlockMapSpec)(nil)) | |
21 | gob.Register((*BlockLabelSpec)(nil)) | |
22 | gob.Register((*DefaultSpec)(nil)) | |
23 | } |