module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jul 8, 2020
License: BSD-3-Clause
Opens a new window with license information.
README
¶
runtimevar
Simple wrapper around the Go Cloud runtimevar package
Example
package main
import (
"context"
"flag"
"fmt"
"github.com/sfomuseum/runtimevar/string"
_ "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, _ := string.RuntimeVar(ctx, uri)
fmt.Printf(str_var)
}
}
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
Directories
¶
cmd
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.