xio

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 3 Imported by: 0

README

xio

CLI helper utilities for IO operations in command-line tools.

 

This package is intended as a small aggregator of helper functions for CLI use. At the moment it only provides basic standard output formatting helpers, but its purpose is to centralize reusable IO behavior for command-line applications.


Purpose

xio is designed to collect simple CLI-oriented IO utilities in one place. It currently focuses on printing consistent output to standard output with a minimal API, while leaving space for future CLI helpers.

The package is meant for command-line tools that need a small, predictable wrapper around common output operations.


Installation

Use go get to install the package:

  go get github.com/AeonDigital/Go-Core/xio@latest

Import it in your code:

import "github.com/AeonDigital/Go-Core/xio"

Basic usage

Print a simple line to standard output:

xio.Print("hello world")

Use formatted output with arguments:

xio.Print("user %s has id %d", "john", 42)

The function behaves like fmt.Println when no format arguments are provided, and like fmt.Printf followed by a newline when arguments are passed.


Supported APIs

Currently the package exposes:

  • xio.Print(message string, args ...any)

This function is intended to provide predictable CLI output behavior while keeping the API surface small.


External dependencies

xio depends only on the Go standard library:

  • fmt
  • io
  • os
  • strings

No third-party external packages are required.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(message string, args ...any)

PrintLog writes a message to the standard output. If no extra arguments (args) are provided, it behaves like fmt.Println, printing the message directly. If extra arguments are provided, it treats the message as a format string and behaves like fmt.Printf, automatically appending a newline character.

Types

This section is empty.

Jump to

Keyboard shortcuts

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