Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertNumToChars(num int) (string, error)
- func GetHeaderFirst(ctx context.Context, key string) string
- func GetRequestID(ctx context.Context) string
- func GetUsername(ctx context.Context) string
- func HttpGet(url string) ([]byte, error)
- func HttpPost(url, content string) ([]byte, error)
- func NewRequestID() string
- func WritePDF(filename string, content interface{}) gofpdf.Pdf
- func WriteXlsx(sheet string, records interface{}) *excelize.File
Constants ¶
View Source
const ( // RequestIDKey requestID key RequestIDKey = "x-request-id" // UsernameKey username key UsernameKey = "x-username" )
Variables ¶
View Source
var Cols = []string{"", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
Functions ¶
func ConvertNumToChars ¶ added in v1.3.25
func GetHeaderFirst ¶
GetHeaderFirst get header first value
func GetRequestID ¶
GetRequestID request id from header
func GetUsername ¶
GetUsername get username from header
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.