mirror of
				https://github.com/mrusme/neonmodem.git
				synced 2025-10-21 19:44:27 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			366 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			366 B
		
	
	
	
		
			Go
		
	
	
	
	
	
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"
 | 
						|
	sys.config["credentials"] = credentials
 | 
						|
 | 
						|
	return nil
 | 
						|
}
 |