Extension

Return the file extension of the image.

Parameters

None

Return Values

string

Examples

package main

import (
    "fmt"
    "github.com/fishtailstudio/imgo"
)

func main() {
    img := imgo.Load("gopher.png")
    fmt.Println(img.Extension())
}

Output:

png

Last updated