MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / BoolToString

Function BoolToString

pkg/util/common.go:256–261  ·  view source on GitHub ↗

BoolToString transform bool to string

(b bool)

Source from the content-addressed store, hash-verified

254
255// BoolToString transform bool to string
256func BoolToString(b bool) string {
257 if b {
258 return "1"
259 }
260 return "0"
261}
262
263func EncodeTimeFlowString(str string, timeNow int64) string {
264 timeNow = timeNow / 1000

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected