Remove unused function

This commit is contained in:
Frank Denis 2019-09-07 17:06:42 +02:00
parent 3e10fc917f
commit 0e7692524e
1 changed files with 0 additions and 11 deletions

View File

@ -4,11 +4,9 @@ import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"io/ioutil"
"net"
"os"
"runtime"
"strconv"
"strings"
"unicode"
@ -164,15 +162,6 @@ func ExtractHostAndPort(str string, defaultPort int) (host string, port int) {
return
}
func MemUsage() {
var m runtime.MemStats
runtime.ReadMemStats(&m)
fmt.Printf("Alloc = %v MiB", m.Alloc/1024/1024)
fmt.Printf("\tTotalAlloc = %v MiB", m.TotalAlloc/1024/1024)
fmt.Printf("\tSys = %v MiB", m.Sys/1024/1024)
fmt.Printf("\tNumGC = %v\n", m.NumGC)
}
func ReadTextFile(filename string) (string, error) {
bin, err := ioutil.ReadFile(filename)
if err != nil {