Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example/celler unknown field LeftDelim #1843

Open
rvernica opened this issue Jul 15, 2024 · 2 comments
Open

example/celler unknown field LeftDelim #1843

rvernica opened this issue Jul 15, 2024 · 2 comments

Comments

@rvernica
Copy link

Describe the bug

Example code not working.

To Reproduce

Steps to reproduce the behavior:

> git clone https://github.com/swaggo/swag.git
> cd swag/example/celler
> swag init
> go run main.go
# github.com/swaggo/swag/example/celler/docs
docs/docs.go:1044:2: unknown field LeftDelim in struct literal of type "github.com/swaggo/swag".Spec
docs/docs.go:1045:2: unknown field RightDelim in struct literal of type "github.com/swaggo/swag".Spec

Expected behavior

Example application starting successfully.

Screenshots

N/A

Your swag version

Latest c7f1cd8

Your go version

> go version
go version go1.22.4 linux/amd64

Desktop (please complete the following information):

  • OS: Fedora release 40 (Forty)
  • Browser: N/A
  • Version: N/A

Additional context

None

@rvernica
Copy link
Author

Workaround:

> sed -i 's/LeftDelim.*//g' ./docs/docs.go
> sed -i 's/RightDelim.*//g' ./docs/docs.go

@Danli741
Copy link

Please have a look at this closed issue:
#1568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants