8000 GitHub - dictav/bqproto: bqproto
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dictav/bqproto

Repository files navigation

BQProto

bqproto is the library for encoding Go Struct to Protocol Buffers message without a definition.

Usage

var schema bigquery.Schema

type Row struct {
	Str string  `bigquery:"str"`
	Int integer `bigquery:"int"`
}

func example() {
	row := Row {
		Str: "日本語",
		Int: 123,
	}
	
	b1, err := bqproto.MarshalForSchema(schema, &row)
	if err != nil {
		log.Fatal(err)
	}
}

About

bqproto

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0