Help us shape the future of Go! Take the 2026 Go Developer Survey

gos1mple

module
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT

README ΒΆ

gos1mple banner

gos1mple

A lightweight Go library that simplifies console applications.


✨ Features

  • πŸ“₯ Easy input functions
  • πŸ“ Functions for text
  • 🌈 Colors for text
  • and more (coming soon)

πŸ“¦ Installation

go get github.com/goldchell-bra7/gos1mple@latest

or

go get github.com/goldchell-bra7/gos1mple@v0.3.0

πŸš€ Usage

package main

import (
    "fmt"

    "github.com/goldchell-bra7/gos1mple/input"
)

func main() {
    age := input.ReadInt("Age: ")
    fmt.Println(age)
}

πŸ“š API

Input

Function Description
ReadInt(prompt string) Read integer
ReadIntln(prompt string) Read integer with prompt on new line
ReadFloat(prompt string) Read float64
ReadFloatln(prompt string) Read float64 with prompt on new line
ReadString(prompt string) Read string
ReadStringln(prompt string) Read string with prompt on new line
ReadBool(prompt string) Read bool
ReadBoolln(prompt string) Read bool with prompt on new line

Text

Function Description
Header(text, symbol string, width int) Places your text in a frame
Separator(symbol string, width int) Inserts a separator
Bold(prompt string) Makes text bold
Cursive(prompt string) Makes text cursive
Underline(prompt string) Underlines the text
Strike(prompt string) Strikes through the text

Color

Functions

Function Description
Term(text, colorConst string) Prints terminal text in the selected color

Constants

  • Red
  • BrightRed
  • FillRed
  • Green
  • BrightGreen
  • FillGreen
  • Blue
  • BrightBlue
  • FillBlue
  • Black
  • BrightBlack
  • FillBlack
  • Yellow
  • BrightYellow
  • FillYellow
  • Magenta
  • BrightMagenta
  • FillMagenta
  • Cyan
  • BrightCyan
  • FillCyan
  • White
  • BrightWhite
  • FillWhite
  • Reset

πŸ“„ License

MIT

Directories ΒΆ

Path Synopsis
examples
color command
input command
text command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL