Skip to content

[doc] Style guide for library and application written in Go #103

Open

Description

@at15

Since we are having more contributors (@xplorld, it's better to come up with a strict standard of how to develop and use Go library within dyweb), this would also reduce the cost for code review (if any). In the future we can even enforce those style using static analysis #75

For now, it's just my style based on current gommon code and stuff I read from blog.

It will have three parts

  • general, applies all types of Go project, library (like gommon, go.ice), application (like Ayi)
  • library, have more restriction since it will be imported by many applications
  • application, how to organize code by 'business logic', though most 'business' we have in dyweb are command line util and 'cloud native' instead of shopping cart ....

Activity

  1. added this to the 0.0.9 milestone on Dec 21, 2018
  2. self-assigned this
    on Dec 21, 2018
  3. at15 commented on Dec 21, 2018

    @at15
    MemberAuthor

    @gaocegege I will put the draft in #96 because error handling is also important part of style and I can take the chance of writing the style guide to revisit existing code in gommon

  4. modified the milestones: 0.0.9, 0.0.10 on Dec 31, 2018
  5. modified the milestones: 0.0.10, 0.0.12 on Apr 13, 2019
  6. modified the milestones: 0.0.13, future on Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions