Rat

command module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 8 Imported by: 0

README ΒΆ

Rat (Go)

Rat

I couldn't get BAT to work for me - so I'm creating my own simplified version as a go binary

πŸš€ Features

  • Colourful print out of a text file

πŸ› οΈ Prerequisites

  • [Go] To compile the code to a binary

πŸ“ Setup

  1. Clone this repository:

    git clone https://github.com/jonathon-chew/Rat.git
    cd Rat 
    
  2. Compile the binary:

    go build .

πŸ“‚ Output

Pass in any number of files and the output will pretty print the file

🧠 Notes

This is currently a work in progress with a few inovations planned for the future. Issues will be tracked in Github issues.

Supported Languages

Rat currently supports syntax highlighting for:

  • Python (.py) - Keywords, comments, strings, and numbers
  • JavaScript (.js) - Keywords, comments, strings, and numbers
  • Go (.go) - Keywords, comments, strings, and numbers
  • PowerShell (.ps1) - Keywords, comments, strings, variables, and numbers
  • JSON (.json) - Basic structure highlighting

Performance improvements have been implemented to handle large files efficiently through buffered output and optimized token scanning.

πŸ“œ License

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

πŸ–ŒοΈ Attribution

The Go Gopher was originally designed by Renee French.
Used under the Creative Commons Attribution 4.0 License.

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

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