runtimevar

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: BSD-3-Clause Imports: 3 Imported by: 31

README

runtimevar

Simple wrapper around the Go Cloud runtimevar package

Example

package main

import (
	"context"
	"flag"
	"fmt"
	"github.com/sfomuseum/runtimevar"
	_ "gocloud.dev/runtimevar/awsparamstore"
	_ "gocloud.dev/runtimevar/constantvar"
	_ "gocloud.dev/runtimevar/filevar"
)

func main() {

	flag.Parse()

	ctx := context.Background()

	for _, uri := range flag.Args() {
		str_var, _ := runtimevar.StringVar(ctx, uri)
		fmt.Printf(str_var)
	}
}

Tools

runtimevar
go run cmd/runtimevar/main.go 'constant://?val=hello+world'
hello world

The following Go Cloud runtimevar services are supported by the runtimevar tool:

See also

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringVar

func StringVar(ctx context.Context, uri string) (string, error)

Types

This section is empty.

Directories

Path Synopsis
cmd
runtimevar command

Jump to

Keyboard shortcuts

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