Back to

Package sliceconfig

Latest Go to latest

The latest major version is .

Published: Sep 14, 2020 | License: Apache-2.0 | Module:


Package sliceconfig provides a mechanism to create a bigslice session from a shared configuration. Sliceconfig uses the configuration mechanism in package, and reads a default profile from $HOME/.bigslice/config. Configurations may be provisioned using the bigslice command.



var Path = os.ExpandEnv("$HOME/.bigslice/config")

Path determines the location of the bigslice profile read by Parse.

func Parse

func Parse() *exec.Session

Parse registers configuration flags, bigslice flags, and calls flag.Parse. It reads bigslice configuration from Path defined in this package. Parse returns a session as configured by the configuration and any flags provided. Parse panics if session creation fails. Parse also instantiates the default http server according to the configuration profile, and registers the bigslice session status handlers with it. Call Shutdown() on the returned session when you are done with it.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier