Skip to content

go(BREAKING)!: use messager-level options for Load func in Messager interface#118

Merged
Kybxd merged 2 commits intomasterfrom
go-loader-options
Aug 15, 2025
Merged

go(BREAKING)!: use messager-level options for Load func in Messager interface#118
Kybxd merged 2 commits intomasterfrom
go-loader-options

Conversation

@wenchy
Copy link
Copy Markdown
Member

@wenchy wenchy commented Aug 15, 2025

Related PRs

❗BREAKING CHANGE

type Messager interface {
	Load(dir string, fmt format.Format, options ...load.Option) error
	...
}

Changed to

type Messager interface {
	Load(dir string, fmt format.Format, opts *load.MessagerOptions) error
	...
}

Compatibility resolution

If you call Load with load.Option before, then you need to pass the load.MessagerOptions struct instead.

@wenchy wenchy requested a review from Kybxd August 15, 2025 08:23
@Kybxd Kybxd merged commit 8592d89 into master Aug 15, 2025
@Kybxd Kybxd deleted the go-loader-options branch August 15, 2025 09:07
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

Successfully merging this pull request may close these issues.

2 participants