contents

 

Front matter

preface

acknowledgments

about this book

about the author

about the cover illustration

  1 Go: Simple to learn but hard to master

  1.1    Go outline

  1.2    Simple doesn’t mean easy

  1.3    100 Go mistakes

Bugs

Needless complexity

Weaker readability

Suboptimal or unidiomatic organization

Lack of API convenience

Under-optimized code

Lack of productivity

  2 Code and project organization

  2.1    #1: Unintended variable shadowing

  2.2    #2: Unnecessary nested code

  2.3    #3: Misusing init functions

Concepts

When to use init functions

  2.4    #4: Overusing getters and setters

  2.5    #5: Interface pollution