Golang learning project -- twitter clone Code Review

Hi All
i have written a basic twitter clone to learn golang as a first programming language i need some suggestions to improve the code. especially timeline.go where it looks like function hell.

any help would be greatly appreciated

thankw

A quick look into timeline.go tells me that this function

  • collects all sorts of information that shall appear in the timeline,
  • sorts the posts by time,
  • and finally renders the HTML based on a template.

So the purpose of the function is clear, and the code looks easy to maintain. Granted, it does call a whole lot of other functions in order to collect the data (I guess this is what you mean by “function hell”), but this increases only length, but not complexity.

(Edit: fix wording.)

thank you for the feedback Christoph

Any time