Categorygithub.com/asim/go-micro/plugins/config/source/pkger/v4
modulepackage
4.7.0
Repository: https://github.com/asim/go-micro.git
Documentation: pkg.go.dev

# README

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

# Functions

No description provided by the author
WithPath sets the path to pkger.

# Variables

No description provided by the author