-
```yaml
# golang pre commits
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.4.0
hooks:
- id: go-fmt
- id: go-vet
- id: go-lint
- id: g…
-
Using Golang 1.18 in the projec to analise.
### Steps to reproduce:
1. have a golang project that imports a library (Such as spf13/viper, or spf13/cobra) that import standard package lib "io/fs'…
-
### Describe the bug:
In the below stack trace, my application is `/home/damon/go/src/sc2-rsu`
```
fatal error: unexpected signal during runtime execution …
-
https://www.menfre.info/2020/04/28/viper/
Viper 是 Golang 中用于加载配置文件的框架,兼容多种格式的配置文件。这里兼容多种文件意思是说你无需告诉 Viper 你的配置文件是什么格式,它会自己识别和加载。
Quick Start:
go get github.com/spf13/vipe
假设我们有一个 JSON 配置文件。
{
…
-
### Preflight Checklist
- [X] I have searched the [issue tracker](https://www.github.com/spf13/viper/issues) for an issue that matches the one I want to file, without success.
- [X] I am not looking …
-
Hi,
we are using our collector with contrib plugins using ocb.
The config file is the following:
```
dist:
name: edge
description: open telemetry collector with additional filelog receiv…
-
**Is your feature request related to a problem? Please describe.**
I am in the process of implementing viper as configuration manager for my Golang project. While debugging, I've found it very hard t…
zneix updated
2 years ago
-
Hello everyone,
I hope there is no duplicate for that.
I'm new to Golang therefore to viper. My use case is to have a structure as a default value, that can be overridden via an other way (env v…
-
Consider this example: https://play.golang.org/p/MHL5QwfsKmx
Copy this example locally, as you can't write files in playground AFAIK, and you can't write the config to a writer #856
Running thi…
-
Linux系统使用最新版的去迁移es集群数据,欲从8.7.1迁移到8.12.2版本,执行后报错:
[04-25 11:03:03] [INF] [ migrator.go:115 ,ParseEsApi] source es version: 8.7.1
[04-25 11:03:03] [ERR] [ v0.go:372 ,NewScroll] server error: {"error":…