Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Commit

Permalink
gofmt cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ramarnat committed Jan 13, 2020
1 parent de28e79 commit 1de5c05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions writer/m3u.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package writer

import (
"crypto/md5"
"encoding/hex"
"github.com/hoshsadiq/m3ufilter/m3u"
"io"
"strconv"
"strings"
"crypto/md5"
"encoding/hex"
)

func writeM3U(w io.Writer, streams []*m3u.Stream) {
Expand All @@ -25,9 +25,9 @@ func writeM3U(w io.Writer, streams []*m3u.Stream) {
}

func GetMD5Hash(text string) string {
hasher := md5.New()
hasher.Write([]byte(text))
return hex.EncodeToString(hasher.Sum(nil))
hasher := md5.New()
hasher.Write([]byte(text))
return hex.EncodeToString(hasher.Sum(nil))
}

func getStreamExtinf(stream *m3u.Stream) []byte {
Expand Down

0 comments on commit 1de5c05

Please sign in to comment.