| // Copyright 2015 The Vanadium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // This file was auto-generated by the vanadium vdl tool. |
| dataRepHex dataRep = iota |
| // dataRepAll holds all labels for dataRep. |
| var dataRepAll = [...]dataRep{dataRepHex, dataRepBinary} |
| // dataRepFromString creates a dataRep from a string label. |
| func dataRepFromString(label string) (x dataRep, err error) { |
| // Set assigns label to x. |
| func (x *dataRep) Set(label string) error { |
| return fmt.Errorf("unknown label %q in main.dataRep", label) |
| // String returns the string label of x. |
| func (x dataRep) String() string { |
| func (dataRep) __VDLReflect(struct { |
| Name string `vdl:"v.io/x/ref/cmd/vom.dataRep"` |
| Enum struct{ Hex, Binary string } |
| vdl.Register((*dataRep)(nil)) |