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