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 NewRequestID() string
- 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 ¶
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.