1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-11-03 04:27:16 -05:00
neonmodem/system/hackernews/connect.go

17 lines
366 B
Go
Raw Normal View History

2022-12-31 12:30:26 -05:00
package hackernews
func (sys *System) Connect(sysURL string) error {
// Credentials
credentials := make(map[string]string)
credentials["username"] = ""
credentials["password"] = ""
if sys.config == nil {
sys.config = make(map[string]interface{})
}
sys.config["url"] = "https://news.ycombinator.com"
2022-12-31 12:30:26 -05:00
sys.config["credentials"] = credentials
return nil
}