TODO(go-dev): Write this document
Have to work on the tools first.
Text previously from the FAQ placed here for safekeeping.
- If it's a significant change, discuss on the mailing list before embarking.
- Check out the Go source code files. The library sources are in
go/src/pkg
.
- Make changes; add tests as appropriate. Try to follow existing style,
including tabs for indentation, and no trailing whitespace. In
documentation comments for public declarations, use full sentences
and begin with the name of the thing being described, because godoc
(or other tools) may someday display these comments out of context.
- Write the
Makefile
by following existing examples.
- Run
make
and make test
in the affected
directories.
- If you have added a new dependency, you may need to
cd go/src/lib;
./deps.bash
to update the Make.deps file included in the Makefile.
For a new component, update the Makefile
and then run
deps.bash
.
cd go/src; ./all.bash
- Once
all.bash
succeeds (output like
"N known bugs; 0 unexpected bugs" is OK),
submit a CL.