Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

20
vendor/github.com/tsuna/gohbase/pb/marshal.go generated vendored Normal file
View File

@@ -0,0 +1,20 @@
// Copyright (C) 2015 The GoHBase Authors. All rights reserved.
// This file is part of GoHBase.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the COPYING file.
package pb
import (
"github.com/golang/protobuf/proto"
)
// MustMarshal is like proto.Marshal except it panic()'s if the protobuf
// couldn't be serialized.
func MustMarshal(pb proto.Message) []byte {
b, err := proto.Marshal(pb)
if err != nil {
panic(err)
}
return b
}