Files
tinyauth/internal/utils/decoders/label_decoder.go
Stavros 1ad862d86c wip
2025-11-04 17:37:40 +02:00

18 lines
262 B
Go

package decoders
import (
"github.com/traefik/paerser/parser"
)
func DecodeLabels[T any](labels map[string]string) (T, error) {
var target T
err := parser.Decode(labels, &target, "tinyauth")
if err != nil {
return target, err
}
return target, nil
}