A utility written in Go that lists all of the files within the directory you pass to it.
This utility starts a TCP server.
- Download the binary under the
Releases
tab and execute it with./golang_file_lister_1.0.0
- You can send strings using the
printf
command in the terminal i.e.:
printf "/usr/local/bin" | nc localhost 8080
- You should see a response in the terminal
OR
- Clone this repo
- Run
go run main.go
- The application should have started and you shoud see
Starting server on port 8080 (localhost)...
- You can send strings using the
printf
command in the terminal i.e.:
printf "/usr/local/bin" | nc localhost 8080
- You should see a response in the terminal
To run the tests run:
go test
This file is already included under the Releases
tab, but if you'd like to build it yourself you can do:
go build main.go