-
-
Save parzibyte/a985b5281aa3053bc017492110b18771 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Únicamente un archivo: | |
nombreArchivo := "hola.txt" // El nombre o ruta absoluta del archivo | |
err := os.Remove(nombreArchivo) | |
if err != nil { | |
fmt.Printf("Error eliminando archivo: %v\n", err) | |
} else { | |
fmt.Println("Eliminado correctamente") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment