Source File
shared.go
Belonging Package
github.com/ic2hrmk/promtail
package promtailfunc copyLabels( map[string]string) map[string]string {:= make(map[string]string, len())for := range {[] = []}return}func copyAndMergeLabels( ...map[string]string) map[string]string {//// We do assume, that gathering map's sizes in a single loop is faster// then additional allocations in loop fot the target map// TODO: verify :)//:= 0for := range {+= len([])}:= make(map[string]string, )for := range {for := range [] {[] = [][]}}return}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |