Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Feature request: set struct fields #12

@glacials

Description

@glacials

Thanks for your hard work on this great library! I'm wondering if there are plans to support setting a struct field via pointer? e.g.

type Config struct{
    Email string
}
var c Config
_, err := pointerstructure.Set(&c, "/Email", "ben@twos.dev")
// Returns error "set /Email: invalid value kind: struct"

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