Skip to content

Abstract Class design pattern in Go #11

Open
@huan

Description

@huan

Questions from WIP: add user/message.go #4

Q3

Q3: In my understanding, Puppet should be an interface definition, different protocols to implement different classes, but some methods of Puppet have logic, and they cannot have logic in Go's interface definition. I don't know what to do.

Sorry, maybe my understanding of wechaty and wechat-puppet is too simple, and I may need to read and understand them as a whole.

If I'm understanding correctly, our problem is the Go Lang does not permit an abstract class to have any implementation in it?

Please feel free to correct me if I'm wrong.

To be updated... I'm going to study Go now...

Updated Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions