diff options
| author | Shulhan <ms@kilabit.info> | 2024-03-16 18:07:08 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-03-16 18:07:08 +0700 |
| commit | f3043736f137e3bd37543af22dbca566db2bee81 (patch) | |
| tree | a0f1e28fc43d2c45a16c254b093ce211eaf5e4a1 /config.go | |
| parent | 916d1874a7047162d0894191c0979d47422786a3 (diff) | |
| download | haminer-f3043736f137e3bd37543af22dbca566db2bee81.tar.xz | |
all: comply with all linters recommendations
Some of breaking changes,
* Field [Config.HttpUrl] renamed to [Config.HTTPURL]
* Field [ConfigForwarder.Url] renamed to [ConfigForwarder.URL]
* Struct [HttpLog] renamed to [HTTPLog]
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -36,7 +36,7 @@ type Config struct { // output. RequestHeaders []string `ini:"haminer::capture_request_header"` - HttpUrl []string `ini:"preprocess:tag:http_url"` + HTTPURL []string `ini:"preprocess:tag:http_url"` // retags contains list of pre-processing rules for tag. retags []*tagPreprocessor @@ -127,12 +127,12 @@ func (cfg *Config) parsePreprocessTag() (err error) { logp = `parsePreprocessTag` retag *tagPreprocessor - httpUrl string + httpURL string vals []string ) - for _, httpUrl = range cfg.HttpUrl { - vals = strings.Split(httpUrl, "=>") + for _, httpURL = range cfg.HTTPURL { + vals = strings.Split(httpURL, `=>`) if len(vals) != 2 { continue } |
