Tagged articles
Viper
12 articles · Page 1 of 1

TonyBaiOct 24, 2026 · Backend Development
This article explores how formal verification tools like Gobra and Viper enable machine-checked correctness proofs for Go programs, using preconditions, postconditions, loop invariants, and permission logic to verify functional correctness, memory safety, and concurrency properties, and discusses how AI agents can assist in generating specifications while verification tools provide independent guarantees.
AI-assisted verificationGoGobra
0 likes · 42 min read

The article explains why relying solely on the Go standard library is impractical, then presents a curated stack—Viper for config, Cobra + Viper for CLI, Uber Fx for DI, Echo for HTTP, GORM for ORM, Testify for testing, Asynq for background jobs, and Zerolog for logging—showing a real project layout, startup flow, and the stability benefits of this combination.
ECHOGORMGo
0 likes · 9 min read

This article delves into Viper’s internal architecture, explaining its layered storage and priority lookup mechanism, how it merges environment variables, config files, and defaults, and highlights concurrency safety concerns, offering practical guidelines and code snippets to avoid common pitfalls when using Viper in Go projects.
Best PracticesConcurrencyGo
0 likes · 9 min read

This guide walks through installing Viper, creating common and environment‑specific YAML configuration files, mapping them to Go structs, setting up a global configuration holder, and initializing the config with live watching, providing a complete, runnable example for Go backend projects.
BackendConfigurationGo
0 likes · 9 min read

Learn how to install the Viper library in Go, read and parse YAML, JSON, TOML, and ENV files, and leverage features like default values, automatic reload, environment variable binding, merging configs, dynamic updates, and struct unmarshalling through clear code examples.
BackendConfigurationGo
0 likes · 5 min read

This article provides a comprehensive guide to Viper, a powerful Go configuration library, covering its core advantages, step‑by‑step basic usage—including installation, defaults, file handling, environment variables, command‑line flags, remote providers—and advanced techniques such as sub‑tree reading, custom decoding, and managing multiple Viper instances.
Backend DevelopmentConfiguration ManagementGo
0 likes · 10 min read

This article provides an in‑depth tutorial on Viper, a full‑featured Go configuration library, covering its features, usage scenarios, loading priorities, reading from files, environment variables, command‑line flags, remote stores, and best practices for managing application settings.
BackendDevOpsGo
0 likes · 22 min read

This guide explains how to use the Viper library together with YAML files to efficiently manage application configuration in Go, covering installation, basic usage, handling complex list structures, and best practices for maintainable and secure config handling.
Backend DevelopmentConfiguration ManagementGo
0 likes · 7 min read

This guide walks through creating a phone‑number SMS verification login system in Go using Gin, Viper, and Tencent Cloud SMS, covering service registration, configuration loading, client implementation with functional options, code generation, sending, and Redis‑based verification.
BackendGinVerification
0 likes · 8 min read

This article explains the VIPER architectural pattern for iOS development, detailing each component (View, Interactor, Presenter, Entity, Router), providing Swift protocols and default implementations, and demonstrating a complete movie‑list example with reusable table‑view components and data handling.
ListDataProtocolPresenterViper
0 likes · 24 min read


21CTOApr 28, 2016 · Mobile Development
This article reviews the most common iOS architectural patterns—MVC, MVP, MVVM, and VIPER—explaining their responsibilities, testability, and ease of use, and helps developers decide which pattern best fits their project’s complexity and maintenance needs.
MVCMVVMViper
0 likes · 19 min read


21CTOJan 16, 2016 · Mobile Development
This article reviews the most popular iOS architectural patterns—MVC, MVP, MVVM, and VIPER—explaining their responsibilities, testability, and maintainability, and provides concise code examples so developers can decide which pattern best fits their project requirements.
MVCMVPMVVM
0 likes · 21 min read
