codec

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package codec provides the small, pure encode/decode transforms behind the Decoder tool and the MCP `decode` tool: base64, URL, hex, HTML entities, and JWT inspection, plus a best-effort "smart" auto-decode.

Index

Constants

This section is empty.

Variables

View Source
var Ops = []string{
	"base64encode", "base64decode",
	"urlencode", "urldecode",
	"hexencode", "hexdecode",
	"htmlencode", "htmldecode",
	"jwtdecode", "smart",
}

Ops lists every supported operation id (also the order shown in the UI).

Functions

func Apply

func Apply(op, s string) (string, error)

Apply runs one operation over s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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