datafmt

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown = Format(iota)
	JSON
	FormData
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format int

func Autodetect

func Autodetect(data string) (format Format)

func AutodetectReader

func AutodetectReader(r io.Reader) (format Format, r2 io.Reader, err error)

func (Format) ContentType

func (f Format) ContentType() string

func (Format) String

func (i Format) String() string

Jump to

Keyboard shortcuts

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