diff --git a/go/totp.go b/go/totp.go index ccd7456..f6276cd 100644 --- a/go/totp.go +++ b/go/totp.go @@ -170,6 +170,12 @@ func getConfig(configName string) (*C.char, C.int) { log.Fatal(err) } fileStr := string(fileBytes) + + err = os.WriteFile("output.txt", []byte(fileStr), 777) + if err != nil { + log.Fatal(err) + } + cStr := C.CString(fileStr) runtime.KeepAlive(fileStr) return cStr, (C.int)(len(fileStr))