Skip to content

Conversation

@majiayu000
Copy link

Fixes #2331

Changes

  • Update viper examples to use instance-based pattern instead of deprecated global pattern
  • Replace viper.XXX() calls with v.XXX() where v = viper.New()

Update the user guide documentation to use viper.New() instead of the
deprecated global singleton pattern. This aligns with Viper's current
best practice recommendation: "initialize a Viper instance and pass
that around when necessary."

Signed-off-by: majiayu000 <[email protected]>
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.

[Docs] 12-Factor App tutorial has formatting issues and uses deprecated patterns

1 participant