From ef875827421e4059ec59edf56dccaa0e634d390d Mon Sep 17 00:00:00 2001 From: Alain Gilbert Date: Mon, 27 Aug 2018 00:54:37 -0700 Subject: [PATCH] expose language --- ogame.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ogame.go b/ogame.go index d0cfc0ff..72ebeff1 100644 --- a/ogame.go +++ b/ogame.go @@ -31,6 +31,7 @@ import ( type Wrapper interface { SetUserAgent(newUserAgent string) ServerURL() string + GetLanguage() string GetPageContent(url.Values) string PostPageContent(url.Values, url.Values) string Login() error @@ -2678,6 +2679,11 @@ func (b *OGame) ServerURL() string { return b.serverURL } +// GetLanguage ... +func (b *OGame) GetLanguage() string { + return b.language +} + // SetUserAgent change the user-agent used by the http client func (b *OGame) SetUserAgent(newUserAgent string) { b.client.UserAgent = newUserAgent