Documentation ¶
Overview ¶
package main runs the Privacy on Beam codelab. Example command to run: (From the codelab/ directory) Linux: bazel run main/codelab -- --example=count --input_file=$(pwd)/main/day_data.csv --output_stats_file=$(pwd)/stats.csv --output_chart_file=$(pwd)/chart.png Windows: bazel run main/codelab -- --example=count --input_file=%CD%/main/day_data.csv --output_stats_file=%CD%/stats.csv --output_chart_file=%CD%/chart.png (Or alternatively, from the codelab/main/ directory) Linux: bazel run codelab -- --example=count --input_file=$(pwd)/day_data.csv --output_stats_file=$(pwd)/stats.csv --output_chart_file=$(pwd)/chart.png Windows: bazel run codelab -- --example=count --input_file=%CD%/day_data.csv --output_stats_file=%CD%/stats.csv --output_chart_file=%CD%/chart.png If instead you'd like to build and run with native "go" command, you can run the following: (From the codelab/ directory) go run --mod=mod ./main --example=count --input_file=main/day_data.csv --output_stats_file=stats.csv --output_chart_file=chart.png (From the codelab/main directory) go run --mod=mod . --example=count --input_file=day_data.csv --output_stats_file=stats.csv --output_chart_file=chart.png Replace 'example=count' with 'example=sum', 'example=mean' or 'example=public_partitions' to run other examples.