R
R
Roman Rakzin2016-01-17 12:57:05
go
Roman Rakzin, 2016-01-17 12:57:05

How to copy/rename a file in golang?

There are files file_new.exe and file.exe
How to rename file_new.exe to file.exe from a go application or copy it with a replacement?
Easy question, but I can't find anything ((
Thanks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2016-01-17
@TwoRS

https://golang.org/pkg/os/#Rename

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question