mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 09:36:44 +00:00
![Riley Karson](/assets/img/avatar_default.png)
```bash GO111MODULE=on go get github.com/hashicorp/terraform@pluginsdk-v0.12-early7 GO111MODULE=on go mod vendor GO111MODULE=on go mod tidy ```
17 lines
518 B
Go
17 lines
518 B
Go
package msgpack
|
|
|
|
type unknownType struct{}
|
|
|
|
var unknownVal = unknownType{}
|
|
|
|
// unknownValBytes is the raw bytes of the msgpack fixext1 value we
|
|
// write to represent an unknown value. It's an extension value of
|
|
// type zero whose value is irrelevant. Since it's irrelevant, we
|
|
// set it to a single byte whose value is also zero, since that's
|
|
// the most compact possible representation.
|
|
var unknownValBytes = []byte{0xd4, 0, 0}
|
|
|
|
func (uv unknownType) MarshalMsgpack() ([]byte, error) {
|
|
return unknownValBytes, nil
|
|
}
|