feat: support split line show option for charts, #69
This commit is contained in:
parent
c7c0655113
commit
f1a231ff4b
13 changed files with 23 additions and 21 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
|
|
@ -16,7 +15,7 @@ func writeFile(buf []byte) error {
|
|||
}
|
||||
|
||||
file := filepath.Join(tmpPath, "pie-chart.png")
|
||||
err = ioutil.WriteFile(file, buf, 0600)
|
||||
err = os.WriteFile(file, buf, 0600)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue