This is how .NET solutions and Go modules are structured, shown with the same small app built both ways: where projects and packages go, how each language decides what is visible, where the tests live, and how many files each needs to say so. It comes with my opinions on both, and a rather daft benchmark at the end.
This series has covered Go's project layout three times, a piece at a time: packages and folders , go.mod against the csproj and repositories with several modules . Each of those described the Go side and pointed back at .NET. This time I wrote the same small app twice, once as a .NET solution and once as a Go module, laid each one out the way its own community would expect, and put both in one repository so they can be read side by side: dotnet-go-layout .
The app
It is the tab at a tabanco in Jerez. The waiter chalks each round on the wooden bar in front of you as tally marks, and adds it up when you leave.…