问题标签 [viper]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
37 浏览

go - Viper 没有考虑我的 umarshalling 结构中的 mapstructure 标签

当我使用UnmarshalViper 的方法用 Yaml 文件中的值填充我的结构时,所有结构文件仍然是空的,我搜索了很多解决方案,但它们都没有工作:(

我尝试将标签更改mapstructureyamland structure,仍然没有工作...

main.go:

配置.yml:

输出:

请有人帮我修复错误!

0 投票
1 回答
26 浏览

ios - VIPER 中的 UINotificationFeedbackGenerator?

这是一个关于最佳实践的问题。

我在我的 iOS 项目中使用 VIPER 架构。我在某些用例中使用触觉反馈。UINotificationFeedbackGenerator在 VIPER中调用的最佳位置在哪里?我相信是的View