Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerCommand = &cli.Command{ Name: "server", Usage: "Start the server", ArgsUsage: "[bind]", Action: func(c *cli.Context) error { bind := c.Args().First() if bind == "" { if os.Getenv("SNIPPY_BIND") != "" { bind = os.Getenv("SNIPPY_BIND") } else { bind = ":8080" } } return start(bind) }, }
Functions ¶
func RenderIndex ¶
func RenderSnippet ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.