(userAgent string)
| 983 | } |
| 984 | |
| 985 | func IsMobile(userAgent string) bool { |
| 986 | return user_agent.New(userAgent).Mobile() |
| 987 | } |
| 988 | |
| 989 | func FormatReadingTime(seconds int, withoutTag ...bool) string { |
| 990 | strFmt := "<span>%v</span> <small>小时</small> <span>%v</span> <small>分钟</small>" |