prysmaticlabs / prysm

Exported function returning value of unexported type RVV-B0011
Anti-pattern
Critical
1 occurrence in this check
exported func SprintfAssertionLoggerFn returns unexported type assertions.assertionLoggerFn, which can be annoying to use
 24
 25type assertionLoggerFn func(string, ...interface{})
 26
 27func SprintfAssertionLoggerFn(s *string) assertionLoggerFn { 28	return func(ef string, eargs ...interface{}) {
 29		*s = fmt.Sprintf(ef, eargs...)
 30	}