fix: fix test
This commit is contained in:
parent
805184b74d
commit
6a3c67e13f
1 changed files with 6 additions and 1 deletions
|
|
@ -24,5 +24,10 @@ func main() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
os.WriteFile("output.png", buf, 0600)
|
||||
file, err := os.Create("output.png")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer file.Close()
|
||||
file.Write(buf)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue