Skip to content

方法返回值的顺序建议 #76

Description

@ningzio

func (em *Manager) Trigger(name string, params M) (error, Event) {

func (em *Manager) Trigger(name string, params M) (error, Event) {

应该绝大部分人都习惯把 error 放在方法返回值的最后吧,这两个方法 error 放在前面太迷惑了

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions