You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
| 1234567891011 |
- package helpers
-
- import (
- "strings"
- "time"
- )
-
- // 创建索引名(按服务名和日期)
- func GetIndexName(serviceName string) string {
- return strings.ToLower("log-"+serviceName) + "-" + time.Now().Format("2006-01-02")
- }
|