func (f *File) Init(dir, name string) {
	pieces := strings.SplitN(name, ".", 2)
	filename := pieces[0]
	var ext string
	if len(pieces) > 1 {
		ext = "." + pieces[1]
	}
	f.Name = filename
	f.Ext = ext
	f.Dir = dir
}
// Init handles the setup for a new File
Init handles the setup for a new File
// Init handles the setup for a new File
func (f *File) Init(dir, name string) {
	pieces := strings.SplitN(name, ".", 2)
	filename := pieces[0]
	var ext string
	if len(pieces) > 1 {
		ext = "." + pieces[1]
	}
	f.Name = filename
	f.Ext = ext
	f.Dir = dir
}
func ( f * File ) Init ( dir , name string ) { pieces := strings . SplitN ( name , " " , 2 ) filename := pieces [ 0 ] var ext string if len ( pieces ) > 1 { ext = " " + pieces [ 1 ] } f . Name = filename f . Ext = ext f . Dir = dir }
Init handles the setup for a new File
Init handles the setup for a new File