MCPcopy
hub / github.com/gin-gonic/gin / timeFormat

Function timeFormat

recovery.go:197–199  ·  view source on GitHub ↗

timeFormat returns a customized time string for logger.

(t time.Time)

Source from the content-addressed store, hash-verified

195
196// timeFormat returns a customized time string for logger.
197func timeFormat(t time.Time) string {
198 return t.Format("2006/01/02 - 15:04:05")
199}

Callers 1

CustomRecoveryWithWriterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected