package main import ( "fmt" "github.com/elastic/beats/libbeat/common" ) func main() { // Create a new configuration object config := common.NewConfig() // Load the configuration from a YAML file err := config.LoadFile("./config.yaml") if err != nil { fmt.Println("Error loading config:", err) } // Access configuration values host := config.GetString("host") port := config.GetInt("port") fmt.Println("Host:", host) fmt.Println("Port:", port) }In this example, the Config package is used to load a configuration file named "config.yaml", which contains the values for the "host" and "port" settings. The GetString() and GetInt() methods are then used to obtain those values from the configuration object. The package library is part of the Elastic Beats suite of open source data shippers and processors, and is used by various Beats modules to manage their configurations.