update the examples
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
bf5ff90e5b
commit
f6018c0960
|
@ -11,11 +11,12 @@ import "strconv"
|
|||
// import "flag"
|
||||
|
||||
import "github.com/golang/protobuf/proto"
|
||||
import pb "git.wit.com/jcarr/witProtobuf"
|
||||
import pb "git.wit.com/wit/witProtobuf"
|
||||
|
||||
func main() {
|
||||
msg := new(pb.Event)
|
||||
msg.Name = "hello jeff"
|
||||
msg := pb.CreateSampleEvent()
|
||||
msg.Name = "from dnssecsockettest()"
|
||||
|
||||
data, err := proto.Marshal(msg)
|
||||
if (err != nil) {
|
||||
log.Printf("something fucked up happened")
|
||||
|
|
|
@ -8,7 +8,7 @@ import "io"
|
|||
import "bytes"
|
||||
|
||||
import "github.com/golang/protobuf/proto"
|
||||
import pb "git.wit.com/jcarr/witProtobuf"
|
||||
import pb "git.wit.com/wit/witProtobuf"
|
||||
|
||||
func processEvents(mychannel chan *pb.Event) {
|
||||
for {
|
||||
|
|
|
@ -8,7 +8,7 @@ import "bufio"
|
|||
import "io/ioutil"
|
||||
|
||||
import "github.com/golang/protobuf/proto"
|
||||
import pb "git.wit.com/jcarr/witProtobuf"
|
||||
import pb "git.wit.com/wit/witProtobuf"
|
||||
|
||||
// Main reads the entire address book from a file and prints all the
|
||||
// information inside.
|
||||
|
@ -54,7 +54,7 @@ func TestWriteEvent() {
|
|||
Id: 1234,
|
||||
Name: "jcarrEvent1",
|
||||
Email: "jcarr@wit.com",
|
||||
Result: []*pb.Response{
|
||||
Results: []*pb.Response{
|
||||
{Name: "555-4321", Type: pb.EventType_ADD},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue