Last active
December 21, 2021 14:57
-
-
Save TheLunaticScripter/75be34b8eccd95b391d2ff69b89d91af to your computer and use it in GitHub Desktop.
opa_sdk_blog_code1.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
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) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
os.Readfile
should beos.ReadFile
:)