testing
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
*/
|
||||
|
||||
type Client struct {
|
||||
cli *mcr.Client
|
||||
cli mcr.Client
|
||||
}
|
||||
|
||||
type IClient interface {
|
||||
@@ -25,9 +25,9 @@ type IClient interface {
|
||||
// creates a new mcr client using saved credentials and decrypted password
|
||||
func New() (*Client, error) {
|
||||
//grab saved credentials
|
||||
server := viper.Get("server").(string)
|
||||
password := viper.Get("password").(string)
|
||||
port := viper.Get("port").(int)
|
||||
server := viper.GetString("server")
|
||||
password := viper.GetString("password")
|
||||
port := viper.GetInt("port")
|
||||
fmt.Printf("Logging into %s on port %d\n", server, port)
|
||||
|
||||
//decrypt password
|
||||
|
Reference in New Issue
Block a user