printgo

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 4 Imported by: 2

README

printgo

printgo is a simple Go package that provides enhanced printing capabilities.

Installation

go get github.com/yyle88/printgo

Example Usage

package main

import (
	"fmt"
	"github.com/yyle88/printgo"
)

func main() {
	ptx := printgo.NewPTX()

	ptx.Println("Hello, world!")

	res := ptx.String()
	
	fmt.Println(res)
}

License

This project is licensed under the MIT License. See the LICENSE file for details.


Support

Welcome to contribute to this project by submitting pull requests or reporting issues.

If you find this package helpful, give it a star on GitHub!

Thank you for your support!

Happy Coding with printgo! 🎉

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PTS

type PTS struct{ strings.Builder }

func NewPTS

func NewPTS() *PTS

func (*PTS) Print

func (pts *PTS) Print(args ...interface{}) (n int)

func (*PTS) Println

func (pts *PTS) Println(args ...interface{}) (n int)

type PTX

type PTX struct{ bytes.Buffer }

func NewPTX

func NewPTX() *PTX

func (*PTX) Print

func (ptx *PTX) Print(args ...interface{}) (n int)

func (*PTX) Println

func (ptx *PTX) Println(args ...interface{}) (n int)

Jump to

Keyboard shortcuts

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