Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ WindowVarName: "_jsenv", EnvPrefixes: []string{"REACT_APP_", "NODE_", "HEROKU_"}, Indent: " ", }
Functions ¶
Types ¶
type Config ¶
type Config struct { // The name of the environment variable on the window. // Default: _jsenv WindowVarName string // Prefixes of environment variables to render into the window config. // Default: REACT_APP_, NODE_, HEROKU_ EnvPrefixes []string // Indentation of each entry in the config dict, because beauty is important // and who knows how your index.html is intented. // Default: " " (two spaces) Indent string }
Click to show internal directories.
Click to hide internal directories.