gitlab.com/evatix-go/core@v1.3.55/simplewrap/TitleCurlyMeta.go (about)

     1  package simplewrap
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"gitlab.com/evatix-go/core/constants"
     7  )
     8  
     9  // TitleCurlyMeta
    10  //
    11  // Example :
    12  //  - constants.CurlyTitleMetaWrapFormat
    13  //  -  "%v: {%v} (%v)"
    14  func TitleCurlyMeta(
    15  	title,
    16  	value,
    17  	meta interface{},
    18  ) string {
    19  	return fmt.Sprintf(
    20  		constants.CurlyTitleMetaWrapFormat,
    21  		title,
    22  		value,
    23  		meta)
    24  }