file_types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSQLiteFile

func IsSQLiteFile(data []byte) bool

func IsValidCSV

func IsValidCSV(b []byte) bool

func IsValidJSON

func IsValidJSON(b []byte) bool

func IsValidJSONL

func IsValidJSONL(b []byte) bool

Types

type FileType

type FileType int

enum of the valid types json, csv, and jsonl for now

const (
	JSON FileType = iota
	CSV
	JSONL
	SQLite
	Unknown
)

func Resolve

func Resolve(b []byte) FileType

func ResolveByPath

func ResolveByPath(fileName string) FileType

func (FileType) String

func (ft FileType) String() string

Jump to

Keyboard shortcuts

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