Skip to content
This repository was archived by the owner on Dec 18, 2020. It is now read-only.
This repository was archived by the owner on Dec 18, 2020. It is now read-only.

Syntax error on generated structs #1

@Guiren

Description

@Guiren

Hi. Just got an issue trying to go get the package.

  • Go version
    1.12.5, also tried on 1.11

  • What happens ?
    Calling go get github.com/xivapi/xivapi-go throws errors because of a generator syntax error :

$ go get github.com/xivapi/xivapi-go
# github.com/xivapi/xivapi-go
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:15:25: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:17:5: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:18:8: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:19:12: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:20:16: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:21:18: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:24:8: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:25:11: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:26:20: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:29:8: syntax error: unexpected %, expecting type
..\github.com\xivapi\xivapi-go\type_AnimaWeapon5Param_generated.go:29:8: too many errors

Some special characters are not allowed in variable names, thus these errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions