Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



As an example, there's no need to spend time lining up the comments on the fields of a structure. Gofmt will do that for you. Given the declaration

type T struct { name string // name of the object value int // its value
}

gofmt will line up the columns:

type T struct { name string // name of the object value int // its value
}

If you want to change selection, open document below and click on "Move attachment"

Effective Go - The Go Programming Language
ing comments. If you want to know how to handle some new layout situation, run gofmt; if the answer doesn't seem right, rearrange your program (or file a bug about gofmt), don't work around it. <span>As an example, there's no need to spend time lining up the comments on the fields of a structure. Gofmt will do that for you. Given the declaration type T struct { name string // name of the object value int // its value } gofmt will line up the columns: type T struct { name string // name of the object value int // its value } All Go code in the standard packages has been formatted with gofmt. Some formatting details remain. Very briefly: Indentation We use tabs for indentation and gofmt emits them by default


Summary

statusnot read reprioritisations
last reprioritisation on suggested re-reading day
started reading on finished reading on

Details



Discussion

Do you want to join discussion? Click here to log in or create user.