Please format source code
glorious-beard opened this issue · 2 comments
Description
Want to start off with kudos and appreciation for a great product. I just want to suggest running gofmt
on this source code (maybe generated from a master template?) to clean up the code formatting and make it easier to follow.
Expected Behavior
For example, NewWatermarkText()
could look like:
// NewWatermarkText generates a new WatermarkText.
func NewWatermarkText() WatermarkText {
_fcgd := _ggg.NewShapetype()
_ffeac := _ggg.NewEG_ShapeElements()
_ffeac.Formulas = _ebedd()
_ffeac.Path = _ggad()
_ffeac.Textpath = _faadb()
_ffeac.Handles = _bbgc()
_ffeac.Lock = _defb()
_fcgd.EG_ShapeElements = []*_ggg.EG_ShapeElements{_ffeac}
var (
_aece = "_\u0078\u0030\u0030\u0030\u0030\u005f\u0074\u0031\u0033\u0036"
_gccf = "2\u0031\u0036\u0030\u0030\u002c\u0032\u0031\u0036\u0030\u0030"
_cdaca = float32(136.0)
_ggfa = "\u0031\u0030\u00380\u0030"
_dacaf = "m\u0040\u0037\u002c\u006c\u0040\u0038,\u006d\u0040\u0035\u002c\u0032\u0031\u0036\u0030\u0030l\u0040\u0036\u002c2\u00316\u0030\u0030\u0065"
)
_fcgd.IdAttr = &_aece
_fcgd.CoordsizeAttr = &_gccf
_fcgd.SptAttr = &_cdaca
_fcgd.AdjAttr = &_ggfa
_fcgd.PathAttr = &_dacaf
_cddg := _ggg.NewShape()
_ageaa := _ggg.NewEG_ShapeElements()
_ageaa.Textpath = _ecec()
_cddg.EG_ShapeElements = []*_ggg.EG_ShapeElements{_ageaa}
var (
_fgbf = "\u0050\u006f\u0077\u0065\u0072\u0050l\u0075\u0073\u0057\u0061\u0074\u0065\u0072\u004d\u0061\u0072\u006b\u004f\u0062j\u0065\u0063\u0074\u0031\u0033\u0036\u00380\u0030\u0038\u0038\u0036"
_dfcd = "\u005f\u0078\u00300\u0030\u0030\u005f\u0073\u0032\u0030\u0035\u0031"
_aefed = "\u0023\u005f\u00780\u0030\u0030\u0030\u005f\u0074\u0031\u0033\u0036"
_afbe = ""
_dfge = "\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003a\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065\u003b\u006d\u0061\u0072\u0067\u0069\u006e\u002d\u006c\u0065f\u0074:\u0030\u003b\u006d\u0061\u0072\u0067\u0069\u006e\u002d\u0074o\u0070\u003a\u0030\u003b\u0077\u0069\u0064\u0074\u0068\u003a\u0034\u0036\u0038\u0070\u0074;\u0068\u0065\u0069\u0067\u0068\u0074\u003a\u0032\u0033\u0034\u0070\u0074\u003b\u007a\u002d\u0069\u006ede\u0078\u003a\u002d\u0032\u0035\u0031\u0036\u0035\u0031\u0030\u0037\u0032\u003b\u006d\u0073\u006f\u002d\u0077\u0072\u0061\u0070\u002d\u0065\u0064\u0069\u0074\u0065\u0064\u003a\u0066\u003b\u006d\u0073\u006f\u002d\u0077\u0069\u0064\u0074\u0068\u002d\u0070\u0065\u0072\u0063\u0065\u006e\u0074\u003a\u0030\u003b\u006d\u0073\u006f\u002d\u0068\u0065\u0069\u0067h\u0074-p\u0065\u0072\u0063\u0065\u006et\u003a\u0030\u003b\u006d\u0073\u006f\u002d\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002d\u0068\u006f\u0072\u0069\u007a\u006fn\u0074\u0061\u006c\u003a\u0063\u0065\u006e\u0074\u0065\u0072\u003b\u006d\u0073\u006f\u002d\u0070o\u0073\u0069\u0074\u0069\u006f\u006e\u002d\u0068\u006f\u0072\u0069\u007a\u006f\u006e\u0074\u0061\u006c\u002d\u0072\u0065l\u0061\u0074\u0069\u0076\u0065:\u006d\u0061\u0072\u0067\u0069n\u003b\u006d\u0073o\u002d\u0070\u006f\u0073\u0069\u0074\u0069o\u006e-\u0076\u0065\u0072\u0074\u0069\u0063\u0061\u006c\u003a\u0063\u0065\u006e\u0074\u0065\u0072\u003b\u006d\u0073\u006f\u002d\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002d\u0076\u0065r\u0074\u0069\u0063\u0061\u006c\u002d\u0072e\u006c\u0061\u0074i\u0076\u0065\u003a\u006d\u0061\u0072\u0067\u0069\u006e\u003b\u006d\u0073\u006f\u002d\u0077\u0069\u0064\u0074\u0068\u002d\u0070\u0065\u0072\u0063e\u006e\u0074\u003a\u0030\u003b\u006d\u0073\u006f\u002dh\u0065\u0069\u0067\u0068t\u002dp\u0065\u0072\u0063\u0065\u006et\u003a0"
_agbgf = "\u0073\u0069\u006c\u0076\u0065\u0072"
)
_cddg.IdAttr = &_fgbf
_cddg.SpidAttr = &_dfcd
_cddg.TypeAttr = &_aefed
_cddg.AltAttr = &_afbe
_cddg.StyleAttr = &_dfge
_cddg.AllowincellAttr = _gee.ST_TrueFalseFalse
_cddg.FillcolorAttr = &_agbgf
_cddg.StrokedAttr = _gee.ST_TrueFalseFalse
_bccaf := _eg.NewCT_Picture()
_bccaf.Any = []_g.Any{_fcgd, _cddg}
return WatermarkText{_ebce: _bccaf, _dbcca: _cddg, _ffdd: _fcgd}
}
Actual Behavior
But it looks like this, since everything is on one line.
// NewWatermarkText generates a new WatermarkText.
func NewWatermarkText ()WatermarkText {_fcgd :=_ggg .NewShapetype ();_ffeac :=_ggg .NewEG_ShapeElements ();_ffeac .Formulas =_ebedd ();_ffeac .Path =_ggad ();_ffeac .Textpath =_faadb ();_ffeac .Handles =_bbgc ();_ffeac .Lock =_defb ();_fcgd .EG_ShapeElements =[]*_ggg .EG_ShapeElements {_ffeac };var (_aece ="_\u0078\u0030\u0030\u0030\u0030\u005f\u0074\u0031\u0033\u0036";_gccf ="2\u0031\u0036\u0030\u0030\u002c\u0032\u0031\u0036\u0030\u0030";_cdaca =float32 (136.0);_ggfa ="\u0031\u0030\u00380\u0030";_dacaf ="m\u0040\u0037\u002c\u006c\u0040\u0038,\u006d\u0040\u0035\u002c\u0032\u0031\u0036\u0030\u0030l\u0040\u0036\u002c2\u00316\u0030\u0030\u0065";);_fcgd .IdAttr =&_aece ;_fcgd .CoordsizeAttr =&_gccf ;_fcgd .SptAttr =&_cdaca ;_fcgd .AdjAttr =&_ggfa ;_fcgd .PathAttr =&_dacaf ;_cddg :=_ggg .NewShape ();_ageaa :=_ggg .NewEG_ShapeElements ();_ageaa .Textpath =_ecec ();_cddg .EG_ShapeElements =[]*_ggg .EG_ShapeElements {_ageaa };var (_fgbf ="\u0050\u006f\u0077\u0065\u0072\u0050l\u0075\u0073\u0057\u0061\u0074\u0065\u0072\u004d\u0061\u0072\u006b\u004f\u0062j\u0065\u0063\u0074\u0031\u0033\u0036\u00380\u0030\u0038\u0038\u0036";_dfcd ="\u005f\u0078\u00300\u0030\u0030\u005f\u0073\u0032\u0030\u0035\u0031";_aefed ="\u0023\u005f\u00780\u0030\u0030\u0030\u005f\u0074\u0031\u0033\u0036";_afbe ="";_dfge ="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u003a\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065\u003b\u006d\u0061\u0072\u0067\u0069\u006e\u002d\u006c\u0065f\u0074:\u0030\u003b\u006d\u0061\u0072\u0067\u0069\u006e\u002d\u0074o\u0070\u003a\u0030\u003b\u0077\u0069\u0064\u0074\u0068\u003a\u0034\u0036\u0038\u0070\u0074;\u0068\u0065\u0069\u0067\u0068\u0074\u003a\u0032\u0033\u0034\u0070\u0074\u003b\u007a\u002d\u0069\u006ede\u0078\u003a\u002d\u0032\u0035\u0031\u0036\u0035\u0031\u0030\u0037\u0032\u003b\u006d\u0073\u006f\u002d\u0077\u0072\u0061\u0070\u002d\u0065\u0064\u0069\u0074\u0065\u0064\u003a\u0066\u003b\u006d\u0073\u006f\u002d\u0077\u0069\u0064\u0074\u0068\u002d\u0070\u0065\u0072\u0063\u0065\u006e\u0074\u003a\u0030\u003b\u006d\u0073\u006f\u002d\u0068\u0065\u0069\u0067h\u0074-p\u0065\u0072\u0063\u0065\u006et\u003a\u0030\u003b\u006d\u0073\u006f\u002d\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002d\u0068\u006f\u0072\u0069\u007a\u006fn\u0074\u0061\u006c\u003a\u0063\u0065\u006e\u0074\u0065\u0072\u003b\u006d\u0073\u006f\u002d\u0070o\u0073\u0069\u0074\u0069\u006f\u006e\u002d\u0068\u006f\u0072\u0069\u007a\u006f\u006e\u0074\u0061\u006c\u002d\u0072\u0065l\u0061\u0074\u0069\u0076\u0065:\u006d\u0061\u0072\u0067\u0069n\u003b\u006d\u0073o\u002d\u0070\u006f\u0073\u0069\u0074\u0069o\u006e-\u0076\u0065\u0072\u0074\u0069\u0063\u0061\u006c\u003a\u0063\u0065\u006e\u0074\u0065\u0072\u003b\u006d\u0073\u006f\u002d\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u002d\u0076\u0065r\u0074\u0069\u0063\u0061\u006c\u002d\u0072e\u006c\u0061\u0074i\u0076\u0065\u003a\u006d\u0061\u0072\u0067\u0069\u006e\u003b\u006d\u0073\u006f\u002d\u0077\u0069\u0064\u0074\u0068\u002d\u0070\u0065\u0072\u0063e\u006e\u0074\u003a\u0030\u003b\u006d\u0073\u006f\u002dh\u0065\u0069\u0067\u0068t\u002dp\u0065\u0072\u0063\u0065\u006et\u003a0";_agbgf ="\u0073\u0069\u006c\u0076\u0065\u0072";);_cddg .IdAttr =&_fgbf ;_cddg .SpidAttr =&_dfcd ;_cddg .TypeAttr =&_aefed ;_cddg .AltAttr =&_afbe ;_cddg .StyleAttr =&_dfge ;_cddg .AllowincellAttr =_gee .ST_TrueFalseFalse ;_cddg .FillcolorAttr =&_agbgf ;_cddg .StrokedAttr =_gee .ST_TrueFalseFalse ;_bccaf :=_eg .NewCT_Picture ();_bccaf .Any =[]_g .Any {_fcgd ,_cddg };return WatermarkText {_ebce :_bccaf ,_dbcca :_cddg ,_ffdd :_fcgd };};
Please include a reproducible code snippet or document attachment that
demonstrates the issue.
Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized,
other issues go into our backlog where they are assessed and fitted into the roadmap when suitable.
If you need to get this done, consider buying a license which also enables you to use it in your commercial products.
More information can be found on https://unidoc.io/
The source code is obfuscated and therefore this ticket is not relevant, closing.