Answers for "get extension from file name golang"

Go
0

golang check file extension

import (
	"fmt"
	"path/filepath"
 )

func main(){
	path := "/media/godfather.mp4"

	fileExtension := filepath.Ext(path)

	fmt.Println("File extension ", fileExtension)
    
  }
Posted by: Guest on January-18-2021

Code answers related to "get extension from file name golang"

Browse Popular Code Answers by Language