8000 Method naming conflict with Field and FieldNot. · Issue #30 · percolate/charlatan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Method naming conflict with Field and FieldNot. #30
Open
@alan-mcnaney

Description

@alan-mcnaney

Similarly named methods can cause auto-generated method naming conflicts. Specifically if an interface has a naming such as:

Field(string, interface{})
FieldNot(string, interface{})

While charlatan does code generation for Field(), it generates FieldCalled() and FieldNotCalled().

When charlatan attempts to generate methods for FieldNot(), it will generate FieldNotCalled() and draw a method definition naming conflict error, as there is already a FieldNotCalled() method defined by code generation for Field().

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0