Is there a loki promtail client package available in golang?

I’m looking for a newer version or substitute for: client package - - Go Packages
This package is from 2020 and has issues with other packages.
Does anyone know of such a package? Is this still supported?

You should get the source code from their github repo. I believe the promtail package is here: loki/clients/pkg/promtail at main · grafana/loki · GitHub