resolver

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 7 Imported by: 0

README

resolver

import "github.com/slalombuild/fusion/internal/resolver"

Index

Variables

JSONFileMapper implements kong.MapperValue to decode a JSON file into a struct field.

var cli struct {
  Profile Profile 	`type:"jsonfile"`
Policy	interface{} `type:"jsonfile"`
}

func main() {
  kong.Parse(&cli, kong.NamedMapper("jsonfile", JSONFileMapper))
}
var JSONFileMapper = kong.MapperFunc(decodeJSONFile)

func JSON

func JSON(r io.Reader) (kong.Resolver, error)

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JSONFileMapper = kong.MapperFunc(decodeJSONFile)

JSONFileMapper implements kong.MapperValue to decode a JSON file into a struct field.

   var cli struct {
     Profile Profile 	`type:"jsonfile"`
		Policy	interface{} `type:"jsonfile"`
   }

   func main() {
     kong.Parse(&cli, kong.NamedMapper("jsonfile", JSONFileMapper))
   }

Functions

func JSON

func JSON(r io.Reader) (kong.Resolver, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL