formatter

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

README

Formatter

HTML, JSON, CSS and Javascript fomatter for Golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(r io.Reader, t ContentType) (io.ReadCloser, error)

If there is an error io.ReadCloser always is nil. Need a biome config file where the program is running from.

func FormatStr

func FormatStr(content string, t ContentType) (string, error)

Types

type ContentType

type ContentType uint8
const (
	HTML ContentType = iota + 0
	CSS
	Javascript
	JSON
	GraphQL
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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