Skip to content

Struct Tags #2488

@xushiwei

Description

@xushiwei

Go does not provide a way to add reflection information to a struct type. XGo uses Go's built-in struct field tags to implement struct type tags. For example:

type Start struct {
	_ "Start recording meeting minutes"
}

It will be converted to:

type Start struct {
	_ struct{} `_:"Start recording meeting minutes"`
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions