gitlab.com/evatix-go/core@v1.3.55/errcore/VarThree.go (about) 1 package errcore 2 3 import "fmt" 4 5 func VarThree( 6 isIncludeType bool, 7 var1 string, 8 val1 interface{}, 9 var2 string, 10 val2 interface{}, 11 var3 string, 12 val3 interface{}, 13 ) string { 14 if isIncludeType { 15 return fmt.Sprintf( 16 var3WithTypeFormat, 17 var1, val1, 18 var2, val2, 19 var3, val3, 20 val1, val2, 21 val3) 22 } 23 24 return fmt.Sprintf( 25 var3Format, 26 var1, var2, var3, 27 val1, val2, val3) 28 }