Skip to content

reflect.Value.Interface: cannot return value obtained from unexported field or method #5

@prologic

Description

@prologic

Hi,

I'm trying to use your librayr to generate a form for Config struct.

I get this error I don't quite know how to debug yet:

template: manage:10:18: executing "content" at <inputs_for .Config>: error calling inputs_for: reflect.Value.Interface: cannot return value obtained from unexported field or method

Here is what I'm trying to generate a form for:

https://github.com/prologic/twtxt/blob/75cccfa29e6c31980fb98ee1e3772207a0fda28c/internal/config.go#L15

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions