- Step 1: Go to https://console.cloud.google.com/alloydb/clusters?referrer=search&project=khan-academy Select Cluster, and Edit Read Pool
| flag | value |
|---|---|
| alloydb.enable_pglogical | on |
| alloydb.logical_decoding | on |
| password.enforce_complexity | on |
| flag | value |
|---|---|
| alloydb.enable_pglogical | on |
| alloydb.logical_decoding | on |
| password.enforce_complexity | on |
Go struct Mapping options
| Library | ⭐ |
|---|---|
| go-viper/mapstructure | 8k |
| jinzhu/copier | 6.1k |
| thoas/go-funk | 4.9k |
| jmattheis/goverter | 778 |
| switchupcb/copygen | 397 |
| airplayx/gormat | 312 |
| go-playground/mold | 288 |
Let's say contributor has submitted a pull request to your (author) project (repo). They have made changes on their
branch feature and have proposed to merge this into origin/master, where
origin -> https://github.com/author/repo.gitNow say you would like to make commits to their PR and push those changes. First, add their fork as a remote called
or...how to use ADC and run your own STS token broker
An STS server will exchange one token for another. This protocol is used by GCP Workload Federation.
THis example runs your own STS server with GCP where the STS server accepts a source token, validates it and the returns a gcp access_token
For more information about STS servers, see
| package main | |
| import ( | |
| "google.golang.org/protobuf/proto" | |
| "google.golang.org/protobuf/reflect/protodesc" | |
| "google.golang.org/protobuf/reflect/protoreflect" | |
| "google.golang.org/protobuf/types/descriptorpb" | |
| "google.golang.org/protobuf/types/dynamicpb" | |
| ) |
From https://www.reddit.com/r/golang/comments/1kwklgf/comment/mui4zkq/
Without a tool like buf, it's a lot of work for the consumers.
Let's say you leave the project layout exactly as in your question:
my-library/
└─ directory1/shared.proto
so downstream code can keep writing
// ProtoDiff generates an indented summary of the diff between two protos'
// YAML representations. See ProtoToYAML for documentation on rewrites.
func ProtoDiff(a, b protoutil.Message, args DiffArgs, rewrites func(interface{})) string {
toYAML := func(m protoutil.Message) string {
if m == nil {
return ""
}
str, err := ProtoToYAML(m, false /* emitDefaults */, rewrites)