mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-29 18:04:17 +02:00
5d5aee1f08
set the go version to 1.16 in pr.yml and tests.yml, so as to be consistent with the version in go.mod.
pkger
pkger plugin for go-config
Prerequisites
Install
pkger
cli
go install github.com/markbates/pkger/cmd/pkger
pkger -h
Packager
generating
pkged.go
with all files in/config
as part of build pipeline
pkger -o srv/greeter -include /config
Usage
if err := config.Load(
pkger.NewSource(pkger.WithPath("/config/config.yaml")),
); err != nil {
log.Fatal(err.Error())
}