Skip to content

Skip field when bcl tag is equal to "-" #5

@condrove10

Description

@condrove10

Hello,

As the title says, it would be great it the parser would skip the block if the struct has bcl:"-":

type logging struct {
	Level     string     `bcl:"level"`
	SlogLevel slog.Level `bcl:"-"`
	Format    string     `bcl:"format"`
}

  • Also could it possible to add an ulterior check for the primitive type of an enum, this way special fields like slog.Level could be parsed?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions