1142 return _global.MiniLogo
1143}
1144
1145func GetIndexUrl() string {1146 _global.lock.RLock()
1147 defer _global.lock.RUnlock()
1148 return _global.IndexUrl
331 return chains
332}
333
334func addXssJsFilter(chains DisplayProcessFnChains) DisplayProcessFnChains {335 chains = chains.Add(func(value FieldModel) interface{} {
336 replacer := strings.NewReplacer("<script>", "<script>", "</script>", "</script>")
337 return replacer.Replace(value.Value)
324 return chains
325}
326
327func addXssFilter(chains DisplayProcessFnChains) DisplayProcessFnChains {328 chains = chains.Add(func(value FieldModel) interface{} {
329 return html.EscapeString(value.Value)
330 })
317 return chains
318}
319
320func addToLower(chains DisplayProcessFnChains) DisplayProcessFnChains {321 chains = chains.Add(func(value FieldModel) interface{} {
322 return strings.ToLower(value.Value)
323 })
310 return chains
311}
312
313func addToUpper(chains DisplayProcessFnChains) DisplayProcessFnChains {314 chains = chains.Add(func(value FieldModel) interface{} {
315 return strings.ToUpper(value.Value)
316 })
Methods or fields of struct that have names different only by capitalization could be confusing.
type SomeType struct {
// actual build system to be inferred, based on the `BuildSystem` passed by user
buildSystem string
// name of the build system to use
BuildSystem string
}
type SomeType struct {
// actual build system to be inferred, based on the `BuildSystem` passed by user
internalBuildSystem string
// name of the build system to use
BuildSystem string
}