streamx

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeTextCsv = "text/csv; charset=UTF-8"
	ContentTypeXlsx    = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
)

Variables

This section is empty.

Functions

func AttachmentHeader

func AttachmentHeader(c *fiber.Ctx, contentType string, filename string)

func ExcelReader

func ExcelReader(file *excelx.Xlsx) *io.PipeReader

func StringReader

func StringReader(data string) *strings.Reader

Types

type Stream

type Stream struct {
	Data        io.Reader
	Size        *int
	ContentType string
	Filename    string
}

func NewStream

func NewStream(filename string, contentType string, data io.Reader, size ...int) *Stream

Jump to

Keyboard shortcuts

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