MCPcopy Index your code
hub / github.com/TruthHun/BookStack / IsMobile

Function IsMobile

utils/util.go:985–987  ·  view source on GitHub ↗
(userAgent string)

Source from the content-addressed store, hash-verified

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

Callers 1

PrepareMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected