1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-29 21:47:44 +02:00
Files
go-micro/plugins/config/source/pkger
Jerry 93ba8cd0df continue fix pre version go get bug that unknown v3.5.1 (#2188)
* 1.fix plugins go get bug.
2.update all mode.
3.add tidy tools

* continue fix pre version go get bug that unknown v3.5.1
2021-06-30 09:24:00 +01:00
..
2021-01-20 21:01:10 +00:00
2021-06-30 07:21:03 +01:00
2021-01-20 21:01:10 +00:00
2021-01-20 21:01:10 +00: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())
	}