1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-29 18:04:17 +02:00
Benjamin 5d5aee1f08
replace ioutil with io and os (#2327)
set the go version to 1.16 in pr.yml and tests.yml, so as to be consistent with the version in go.mod.
2021-10-30 19:24:40 +01:00
..
2021-10-12 12:55:53 +01:00
2021-10-12 12:55:53 +01:00
2021-10-30 19:24:40 +01:00
2020-12-26 15:32:45 +00:00

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())
	}