util

package
v0.0.0-...-30b4b00 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CSVMaxExportRows = 100000

CSVMaxExportRows 单次导出最大行数上限。

Variables

This section is empty.

Functions

func CSVDateFilename

func CSVDateFilename(prefix string) string

CSVDateFilename 生成带本地日期的 CSV 文件名。

func WriteCSV

func WriteCSV(c *gin.Context, filename string, headers []string, records [][]string)

WriteCSV 以 UTF-8(含 BOM) 写出 CSV 文件流,触发浏览器下载。

Types

This section is empty.

Jump to

Keyboard shortcuts

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