gitlab.com/evatix-go/core@v1.3.55/errcore/MsgHeaderIf.go (about)

     1  package errcore
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  func MsgHeaderIf(
     8  	isHeader bool,
     9  	items ...interface{},
    10  ) string {
    11  	if isHeader {
    12  		return MsgHeader(items...)
    13  	}
    14  
    15  	return fmt.Sprint(items...)
    16  }