Skip to content

Commit

Permalink
Move from io/ioutil to os
Browse files Browse the repository at this point in the history
  • Loading branch information
tmdvs committed Oct 19, 2024
1 parent 2c5cbe8 commit fcf4406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions import/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"

"github.com/PuerkitoBio/goquery"
emoji "github.com/tmdvs/Go-Emoji-Utils"
Expand Down Expand Up @@ -97,5 +97,5 @@ func main() {

// Marshal the emojis map as JSON and write to the data directory
s, _ := json.MarshalIndent(emojis, "", "\t")
ioutil.WriteFile("data/emoji.json", []byte(s), 0644)
os.WriteFile("data/emoji.json", []byte(s), 0644)
}

0 comments on commit fcf4406

Please sign in to comment.