Skip to content

sshankar/baseplate.go

 
 

Repository files navigation

baseplate.go

Baseplate implemented in go.

Documentation

Code documentation

IDE/Editor setup

See here.

Code style guide

See here.

Thrift generated files

The internal/gen-go/ directory contains thrift generated files, with *-remote directories removed. They are excluded from the linter. DO NOT EDIT.

They were generated with thrift compiler v0.14.1 against baseplate.thrift using the following commands under internal/:

thrift --gen go:package_prefix=github.com/reddit/baseplate.go/ path/to/baseplate.thrift
find gen-go -depth -name "*-remote" -type d -exec rm -Rf {} \;

They are needed by some of the Baseplate.go packages. We did not include those thrift files into this repo to avoid duplications. This directory will be regenerated when either thrift compiler or the thrift files changed significantly.

Bazel support

This project also comes with optional Bazel support. It's optional as in you can totally ignore Bazel and still use the go toolchain, but the added support will make it easier for projects using Bazel to add this project as a dependency.

When you made a change to go.mod file, please run the following command to reflect the changes in Bazel:

bazel run //:gazelle -- update-repos -from_file=go.mod -prune

Or just use the script we used in CI:

./scripts/bazel_cleanup.sh

To run tests via Bazel, use the following command:

bazel test //...:all

Packages

No packages published

Languages

  • Go 92.5%
  • Starlark 7.4%
  • Other 0.1%