añadido la capacidad de visualizarlos con colores

master
DEV 3 years ago
parent ecd6c7c1d5
commit 08d8cb8eb2

@ -51,7 +51,7 @@ type (
func NewFmtText(options ...FmtTextFnc) *FmtText {
return applyFmtTextOptions(&FmtText{
FmtTextAtt: FmtTextAttIndent | FmtTextAttVerbose | FmtTextAttTrace,
FmtTextAtt: FmtTextAttIndent | FmtTextAttVerbose | FmtTextAttTrace | FmtTextAttColors,
indent : " ",
traceFmt : formatStackTrace ,
}, options...) }

@ -30,6 +30,7 @@ const(
FmtTextAttEmpty
FmtTextAttIndent
FmtTextAttTrace
FmtTextAttColors
)
@ -52,4 +53,7 @@ func (a FmtTextAtt) UseIndent () bool {
return a&FmtTextAttIndent != 0 }
func (a FmtTextAtt) AddStackTrace () bool {
return a&FmtTextAttTrace != 0 }
return a&FmtTextAttTrace != 0 }
func (a FmtTextAtt) UseColors () bool {
return a&FmtTextAttColors != 0 }
Loading…
Cancel
Save

Powered by TurnKey Linux.