added readme
sophuwu sophie@skisiel.com
Thu, 05 Dec 2024 07:56:34 +0100
2 files changed,
41 insertions(+),
19 deletions(-)
A
README.md
@@ -0,0 +1,41 @@
+# MP3 Player + +This is a simple MP3 player written in Go. It can play MP3 files from the current directory or from a list of files provided as command-line arguments. The player supports shuffling and skipping songs. + +## Features + +- Play MP3 files from the current directory or from a list of files provided as arguments +- Shuffle the playlist +- Display the current song and the next few songs in the queue +- Write "skip" to skip the current song + +## Limitations +- No volume control +- Exit the player by pressing `Ctrl`+`C` +- No pause or resume functionality +- Only supports MP3 files + +## Compilation +Clone the repository and cd into it. Then +run the following command to compile the program and install the dependencies: +```sh +go build -ldflags="-w -s" -trimpath -o build/melgody . +``` +## Installation +To install the program into you system bin, run: +```sh +sudo install ./build/melgody /usr/local/bin/melgody +``` + +## Usage +To play all MP3 files in the current directory, run: +```sh +melgody +``` +To play a list of MP3 files, run: +```sh +melgody file1.mp3 file2.mp3 ... +``` + +## License +MIT
D
highlight.css
@@ -1,19 +0,0 @@
-/* Style definition file generated by highlight 3.41, http://www.andre-simon.de/ */ -/* highlight theme: Kwrite Editor */ -body.hl { background-color:#e0eaee; } -pre.hl { color:#000000; background-color:#e0eaee; font-size:10pt; font-family:'Courier New',monospace;} -.hl.num { color:#b07e00; } -.hl.esc { color:#ff00ff; } -.hl.str { color:#bf0303; } -.hl.pps { color:#818100; } -.hl.slc { color:#838183; font-style:italic; } -.hl.com { color:#838183; font-style:italic; } -.hl.ppc { color:#008200; } -.hl.opt { color:#000000; } -.hl.ipl { color:#0057ae; } -.hl.lin { color:#555555; } -.hl.kwa { color:#000000; font-weight:bold; } -.hl.kwb { color:#0057ae; } -.hl.kwc { color:#000000; font-weight:bold; } -.hl.kwd { color:#010181; } -