title: Go Lang folder structure for a web app
body: <p>As you know Go is a modern approach to OOP imo, with brilliant things like forcing you to use composition over inheritance. I am just trying to understand how a well written go code has to be designed in terms of folder and package structure.</p>
  
  <p>I am just wondering if this React like approach which can be seen below - dividing app as components to different packages can work?</p>
  
  <p>Or can you give me an example, link, idea for a good structure in terms of folder/packaging of a web api. Go will only be an api in the background to my open source project, on client side I am planing to have a single-page React app btw.</p>
  
  <p>Thanks a lot,</p>
  
  <p><a href="https://i.stack.imgur.com/aRhUD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aRhUD.png" alt="enter image description here"></a></p>