Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAIKey ¶
GetOpenAIKey tries to retrieve OpenAI key from "OPENAI_API_KEY" environment variable or .env file in current workgin directory
func GetValue ¶
GetValue retrieves a value from a nested map given a dot-separated path (e.g. "a.b.c"). It returns the retrieved value and a boolean indicating the success of the operation.
func SetValue ¶
setValue sets a value in a nested map given a dot-separated path. If the path does not exist, it is created. If any part of the path exists and is not a map, an error is returned. This function creates any necessary maps if they don't exist, but does not overwrite non-map values in the path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.