type `filecontent` not read file
artemklevtsov opened this issue · comments
Artem Klevtsov commented
Hi,
I tried to parse the following struct
type CLI struct {
File []byte `type:"filecontent"`
}
But I got the following error:
panic: --file: expected a valid 8 bit uint but got "/tmp/1887157628"
To reproduce: https://go.dev/play/p/Z9zJWxBh7w4
Alec Thomas commented
That's because "filecontent" is not in a released version yet.
…On Tue, 18 Apr 2023 at 22:20, Artem Klevtsov ***@***.***> wrote:
Hi,
I tried to parse the following struct
type CLI struct {
File []byte `type:"filecontent"`
}
But I got the following error:
panic: --file: expected a valid 8 bit uint but got "/tmp/1887157628"
To reproduce: https://go.dev/play/p/Z9zJWxBh7w4
—
Reply to this email directly, view it on GitHub
<#359>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAKGJYQJ76IYTWEVRINQT3XB2BHVANCNFSM6AAAAAAXCRRIO4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>