ui

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

This is a simple web-server for re-formatting PSV tables.

Routes:

GET /index.html

	+---------------------------+
    | (reformat|reset|show-all)	|
	|                           |
	| [ ] align [x] squash      |
	| prefix: [//___]           |
	| locale: [en___]           |
	| style:  [markdown|v]      |
	|                           |
	| +- input ---------------+ |
	| |                       | |
	| |                       | |
	| +-----------------------+ |
	+---------------------------+

GET /api/tour

	{
		tutorials: [
			           { ... },
			           { ... }
			       ]
	}

POST /api/format
	accept text input
		- TODO: 2025-03-27
	    	- [ ] limit size
	    	- [ ] limit # api calls per IP
	response
	    - [x] text (reformatted input)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(ctx context.Context, addr string)

Types

type ReformatJSON

type ReformatJSON struct {
	Text     string `json:"text"`
	Prefix   string `json:"prefix"`
	Profile  string `json:"profile"`
	Locale   string `json:"locale"`
	Commands string `json:"commands"`
}

Jump to

Keyboard shortcuts

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