May 7, 2015
Replace file extension
path.Ext() returns a file name extension including a dot if exists.
import "path" ext := path.Ext(infile) outfile = infile[0:len(infile)-len(ext)] + ".newExt"
seen from Malaysia
seen from China
seen from Japan

seen from Brazil
seen from Israel

seen from United States
seen from United States

seen from China
seen from Türkiye
seen from Israel
seen from United States

seen from Türkiye

seen from United States

seen from Argentina

seen from Malaysia

seen from Russia

seen from Canada

seen from Chile
seen from China
seen from China
Replace file extension
path.Ext() returns a file name extension including a dot if exists.
import "path" ext := path.Ext(infile) outfile = infile[0:len(infile)-len(ext)] + ".newExt"