Get File Extension
Examples
Filter
package main
import (
"fmt"
"path/filepath"
)
func main() {
fmt.Println(filepath.Ext("hello.go"))
}
Last Run
:
.go