mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 06:12:33 +03:00
parent
21cd94b93e
commit
76e6179346
@ -57,16 +57,16 @@ func createCssMap() map[string]string {
|
||||
// Renames file by paths.
|
||||
func renameFile(oldPath, newPath string) {
|
||||
// rename the file
|
||||
err := os.Rename(oldPath, newPath)
|
||||
err := os.Rename(removeFirstChar(oldPath), removeFirstChar(newPath))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
// Removes first character from string.
|
||||
// func removeFirstChar(s string) string {
|
||||
// return s[1:]
|
||||
// }
|
||||
func removeFirstChar(s string) string {
|
||||
return s[1:]
|
||||
}
|
||||
|
||||
// Generates a random string.
|
||||
func randomString(length int) string {
|
||||
|
Loading…
Reference in New Issue
Block a user