Skip to content

Commit

Permalink
docs: add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 20, 2024
1 parent 1025509 commit 93fde07
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
_ "embed"
"encoding/base64"
"encoding/json"
"flag"
"fmt"
Expand Down Expand Up @@ -89,8 +90,12 @@ func main() {
if err != nil {
panic(err)
}
defer resp.Body.Close()
attDocBytes, err = io.ReadAll(resp.Body)

var attDocB64 string
if err := json.NewDecoder(resp.Body).Decode(&attDocB64); err != nil {
panic(err)
}
attDocBytes, err = base64.StdEncoding.DecodeString(attDocB64)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 93fde07

Please sign in to comment.