via_parquet

command
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2019 License: MIT Imports: 3 Imported by: 0

README

Parquetgen example (by reading a parquet file)

This example reads a parquet file and generates a struct, a ParquetReader, and a ParquetWriter.

To generate the code needed to run this example:

cd cmd/parquetgen
go get ./...
go install
cd ../../examples/via_parquet
go generate

Go generate calls (see the top of main.go for the go:generate command):

parquetgen --parquet ./people.parquet --type Person --package main

Which produces two files: parquet.go and generated_struct.go. Now run:

go run .

To read the parquet file. The generated ParquetWriter is not used in this example (but could be used). To see ParquetWriter in action see the people example.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL