28 lines
499 B
Go
28 lines
499 B
Go
|
package witProtobuf
|
||
|
|
||
|
import "log"
|
||
|
// import "bytes"
|
||
|
// import "os"
|
||
|
// import "bufio"
|
||
|
// import "io"
|
||
|
// import "io/ioutil"
|
||
|
|
||
|
func CreateSampleEvent() *Event {
|
||
|
// TODO: flush this out to do all the fields
|
||
|
log.Println("CreateSampleEvent() is generating a example protobuf Event")
|
||
|
|
||
|
e := &Event{
|
||
|
Id: 1234,
|
||
|
Name: "jcarrEvent1",
|
||
|
Email: "jcarr@wit.com",
|
||
|
Results: []*Event_Response{
|
||
|
{Name: "foobar", Type: Event_ADD},
|
||
|
},
|
||
|
}
|
||
|
|
||
|
e.Id += 1
|
||
|
e.Name = "jcarrEvent2"
|
||
|
|
||
|
return e
|
||
|
}
|