Skip to content

Test and object struct members should be pointers #16

@ameihm0912

Description

@ameihm0912

As an example:

scribe/test.go

Line 31 in 69bc11b

EVR EVRTest `json:"evr,omitempty" yaml:"evr,omitempty"` // EVR version comparison

This could be defined as EVR *EVRTest

The benefit here is if set nil, omitempty would behave correctly and not include this in resulting JSON documents. Currently, the types when marshaled can include a lot of useless sections, and being able to omit these correctly if not required would make them much smaller.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions