mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Remove references to io/ioutil package
Package io/ioutil has been marked deprecated starting in Go 1.16. Signed-off-by: Austin Vazquez <macedonv@amazon.com>
This commit is contained in:
committed by
Christian Muehlhaeuser
parent
7ba62d4987
commit
e079831c31
@@ -5,7 +5,6 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@@ -129,7 +128,7 @@ func max(a, b int) int {
|
||||
|
||||
func main() {
|
||||
// Load some text for our viewport
|
||||
content, err := ioutil.ReadFile("artichoke.md")
|
||||
content, err := os.ReadFile("artichoke.md")
|
||||
if err != nil {
|
||||
fmt.Println("could not load file:", err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user