To concat dir and fileName as a path, use code below
path := filepath.Join(dir, fileName)
or
path := dir + os.PathSeparator + fileName
To concat dir and fileName as a path, use code below
path := filepath.Join(dir, fileName)
or
path := dir + os.PathSeparator + fileName
最新评论