module
0.0.0-20201223221138-0cf030ac26fd
Repository: https://github.com/upcraftlp/go-utils.git
Documentation: pkg.go.dev
# README
go-utils
Monorepo for a bunch of small command line utilities, written in go.
Building
to build all tools, simply run the build
script:
in CMD:
build.cmd 1.0.0
in Powershell:
.\build.cmd 1.0.0
on Linux:
Note: This currently still only builds the windows targets, due to npipe not being available for linux.
chmod +x build
./build 1.0.0
You will then find the outputs in the bin
directory.
Current Tools:
datetime
A simple utility to print the current Unix Time.
Usage:
datetime
listener
A command line utility that will echo anything it receives on the provided port or named pipe.
Usage:
# listen on a named pipe
listener \\.\pipe\someNamedPipe
# listen on a port
listener 22
time
A utility to record the execution time of another process or command.
Usage:
# parameters are treated as arguments for the application,
# so this launches 'cmd /c exit 1'
#
# Output: Process finished after 16.9926ms with exit code 1
time cmd /c exit 1