]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - vendor/github.com/zclconf/go-cty/cty/msgpack/unknown.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / zclconf / go-cty / cty / msgpack / unknown.go
1 package msgpack
2
3 type unknownType struct{}
4
5 var unknownVal = unknownType{}
6
7 // unknownValBytes is the raw bytes of the msgpack fixext1 value we
8 // write to represent an unknown value. It's an extension value of
9 // type zero whose value is irrelevant. Since it's irrelevant, we
10 // set it to a single byte whose value is also zero, since that's
11 // the most compact possible representation.
12 var unknownValBytes = []byte{0xd4, 0, 0}
13
14 func (uv unknownType) MarshalMsgpack() ([]byte, error) {
15 return unknownValBytes, nil
16 }