A lightweight replacement for the standard fmt package, reduces binary size by roughly 400kb in a hello world

console

This is a lightweight replacement for the fmt package, reduces the binary size by roughly 400kb in a hello world program.

Please note: This package achieves smaller binaries primarily by not relying on reflection. So if your program does use reflection itself then this won't benefit you much.

Getting Started

Installing

To start using wire, install Go and run go get:

$ go get -u github.com/hk-32/console

This will retrieve the library. Specifically the v1.0.0 right now. Works perfecly fine with modules.

Examples

Hello World:

package main

import "github.com/hk-32/console/out"

func main() {
    out.WriteLine("Hello World")
}

Or get some user input:

package main

import (
    "github.com/hk-32/console/out"
    "github.com/hk-32/console/in"
)

func main() {
    // name := in.ReadLine()
    name := in.Input("Please enter your name: ")
    out.WriteLine("Hello", name)
}

Contact

Hassan Khan: [email protected]

License

console source code is available under the MIT License.

Similar Resources

gif effects CLI. single binary, no dependencies. linux, osx, windows.

gif effects CLI. single binary, no dependencies. linux, osx, windows.

yeetgif Composable GIF effects CLI, with reasonable defaults. Made for custom Slack/Discord emoji :) Get it Alternative 1: go get Alternative 2: just

Dec 11, 2022

elf binary parsing utility written in Go.

What is it ? go-readelf is a small elf binary parser currently capable of printing relocation entries, elf header, sections and Symbols. It utilizes G

Nov 9, 2022

Another Go shellcode loader designed to work with Cobalt Strike raw binary payload.

Another Go shellcode loader designed to work with Cobalt Strike raw binary payload.

Bankai Another Go shellcode loader designed to work with Cobalt Strike raw binary payload. I created this project to mainly educate myself learning Go

Dec 29, 2022

Tiny binary serializer and deserializer to create on demand parsers and compilers

Parco Hobbyist binary compiler and parser built with as less reflection as possible, highly extensible and with zero dependencies. There are plenty pa

Nov 9, 2022

Gostall - Run go install ./cmd/server and not have the binary install in your GOBIN be called server?

GOSTALL Ever wanted to run go install ./cmd/server and not have the binary insta

Jan 7, 2022

Instal - Install any binary app from a script URL

Instal - Install any binary app from a script URL

πŸ›°οΈ Install any binary app from a script URL. this cli app is an alternative to

Jun 30, 2022

archy is an static binary to determine current kernel and machine architecture, with backwards compatible flags to uname, and offers alternative output format of Go runtime (i.e. GOOS, GOARCH).

archy archy is an simple binary to determine current kernel and machine architecture, which wraps uname and alternatively can read from Go runtime std

Mar 18, 2022

Simple, seamless, lightweight time tracking for Git

Simple, seamless, lightweight time tracking for Git

Git Time Metric Seamless time tracking for all your Git projects $ gtm report -last-month $ gtm report -last-month -format summary $ gtm report -last-

Dec 27, 2022

Shelby is a fast ⚑️ , lightweight ☁️ , minimal✨, shell prompt written in Go.

Shelby is a fast ⚑️ , lightweight ☁️ , minimal✨,  shell prompt written in Go.

Shelby is a fast ⚑️ ,lightweight ☁️ ,minimal ✨ , shell prompt written in Pure Go. Installation Follow the steps below(Linux and macOS), and Post Insta

Dec 3, 2022
Drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.

Description pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags. pflag is compatible with the GNU extensions to

Dec 30, 2022
The standard library flag package with its missing features

cmd Package cmd is a minimalistic library that enables easy sub commands with the standard flag library. This library extends the standard library fla

Oct 4, 2022
Dependency-free replacement for GNU parallel, perfect fit for usage in an initramfs.

coshell v0.2.5 A no-frills dependency-free replacement for GNU parallel, perfect for initramfs usage. Licensed under GNU/GPL v2. How it works An sh -c

Dec 19, 2022
Simple Todo List - Wunderlist Replacement
Simple Todo List - Wunderlist Replacement

DoIT Todo List This is a simple todo-list made with Vue(frontend) and a simple webserver written in Go(backend). Note that this started out as a simpl

Oct 9, 2022
Moldy CLI the best project starter and manager of the world
Moldy CLI the best project starter and manager of the world

You don't know how to start your project ... you want to help other people know your tool or language. Use Moldy! the best helper to start your project

Oct 17, 2022
The slightly more awesome standard unix password manager for teams
The slightly more awesome standard unix password manager for teams

gopass Introduction gopass is a password manager for the command line written in Go. It supports all major operating systems (Linux, MacOS, BSD) as we

Jan 4, 2023
Read from standard input and output a Haags translation of the given input.

haags Read from standard input and output a Haags translation of the given input. Building make && sudo make install You may also run go build on syst

Oct 23, 2022
Go package to make lightweight ASCII line graph β•­β”ˆβ•― in command line apps with no other dependencies.
Go package to make lightweight ASCII line graph β•­β”ˆβ•― in command line apps with no other dependencies.

asciigraph Go package to make lightweight ASCII line graphs β•­β”ˆβ•―. Installation go get github.com/guptarohit/asciigraph Usage Basic graph package main

Jan 8, 2023
a lightweight and simple cli package

β–„β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ β–„β–ˆ β–„β–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–€ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–Œ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–Œ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆβ–Œ β–ˆβ–ˆβ–ˆ β–ˆβ–„ β–ˆβ–ˆβ–ˆ

Oct 14, 2021
Run your MapReduce workloads as a single binary on a single machine with multiple CPUs and high memory. Pricing of a lot of small machines vs heavy machines is the same on most cloud providers.

gomap Run your MapReduce workloads as a single binary on a single machine with multiple CPUs and high memory. Pricing of a lot of small machines vs he

Sep 16, 2022