code: func (c *hookCmd) hookPreCommit(args []string) (err error) {
  	if err = c.hookGofmt(); err != nil {
  		return err
  	}
  	return c.hookTrailingSpace()
  }
docs: // hookPreCommit does the following checks, in order:
  // gofmt, and trailing space.
  // If appropriate, any one of these checks prints the action
  // required from the user, and the following checks are not
  // performed.