There is a code part in the https://golang.org/pkg/sort/#example_ The Go code formatter doesn't change this code.
func (a ByAge) Len() int { return len(a) } > func (a ByAge) Swap(i, j int) { a[i], a[j] = a[j], a[i] } > func (a ByAge) Less(i, j int) bool { return a[i].Age < a[j].Age } > Similarly, how can I make it leave the following code snippet unchanged? Does this have a technique? ? if cKtipi == "relan" || cKtipi == "rolan" { cSorec = "rec0" } > if cKtipi == "nelan" || cKtipi == "nolan" { cSorec = "new0" } > if cKtipi == "owlan" || cKtipi == "orlan" { cSorec = "oRec" } -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.