-
-
Save emretanriverdi/9dbd29fcb9bb2865e14ad5eef39a103a to your computer and use it in GitHub Desktop.
sequential.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func upsert(user User) { | |
upsertToPostgres(user) | |
upsertToCouchbase(user, "key") | |
} | |
func upsertToPostgres(user User) { | |
// implement upsert to Postgres | |
} | |
func upsertToCouchbase(user User, key string) { | |
// implement upsert to Couchbase | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment