Skip to content

Instantly share code, notes, and snippets.

@TheLunaticScripter
Last active December 21, 2021 14:57
Show Gist options
  • Save TheLunaticScripter/75be34b8eccd95b391d2ff69b89d91af to your computer and use it in GitHub Desktop.
Save TheLunaticScripter/75be34b8eccd95b391d2ff69b89d91af to your computer and use it in GitHub Desktop.
opa_sdk_blog_code1.go
package main
import (
"context"
"os"
)
func main() {
// Setup the context for OPA
ctx := context.Background()
// Pull in the OPA config file
config, err := os.ReadFile("opa-conf.yaml")
if err != nil {
panic(err)
}
}
@anderseknert
Copy link

os.Readfile should be os.ReadFile :)

@TheLunaticScripter
Copy link
Author

good catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment