add support for jpeg & gif
This commit is contained in:
parent
f07d2de3a8
commit
33ba2d8eea
16
main.go
16
main.go
|
@ -2,18 +2,20 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
"fmt"
|
||||||
|
"image"
|
||||||
|
_ "image/gif"
|
||||||
|
_ "image/jpeg"
|
||||||
|
_ "image/png"
|
||||||
|
"log"
|
||||||
"net"
|
"net"
|
||||||
|
_ "net/http/pprof"
|
||||||
|
"os"
|
||||||
"runtime/pprof"
|
"runtime/pprof"
|
||||||
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
import "fmt"
|
|
||||||
import "image/png"
|
|
||||||
import "log"
|
|
||||||
import "os"
|
|
||||||
import "strconv"
|
|
||||||
import _ "net/http/pprof"
|
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
var cpuprofile = flag.String("cpuprofile", "", "Destination file for CPU Profile")
|
var cpuprofile = flag.String("cpuprofile", "", "Destination file for CPU Profile")
|
||||||
var image = flag.String("image", "", "Absolute Path to image")
|
var image = flag.String("image", "", "Absolute Path to image")
|
||||||
|
|
Loading…
Reference in New Issue