cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

WTUTF: A simple UTF-8 string inspector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func FindRange

func FindRange(r rune) (rangename string)

Types

type OutputData added in v0.1.0

type OutputData struct {
	Input         string         `json:"input"`
	Punycode      string         `json:"punycode,omitempty"`
	UTF8          string         `json:"utf8,omitempty"`
	PunycodeError string         `json:"punycode_error,omitempty"`
	TotalBytes    int            `json:"total_bytes"`
	Characters    int            `json:"characters"`
	UnicodeRanges map[string]int `json:"unicode_ranges,omitempty"`
	Table         []RuneTableRow `json:"table,omitempty"`
}

OutputData holds the structured output for both text and JSON formats

type RuneCache

type RuneCache struct {
	Printable string
	Padded    string
	Bytes     string
	Errors    []string
}

type RuneTableRow added in v0.1.0

type RuneTableRow struct {
	Printable string   `json:"printable"`
	CodePoint string   `json:"code_point"`
	Bytes     string   `json:"bytes"`
	Length    int      `json:"length"`
	Errors    []string `json:"errors,omitempty"`
}

Jump to

Keyboard shortcuts

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