[go-nuts] Re: Singleton pattern for a client handle

2016-06-30 Thread awickert
Am Donnerstag, 30. Juni 2016 08:29:32 UTC+2 schrieb krma...@gmail.com: > > I want a single instance of a client handle to be initialized. > > Is it ok to declare the instance as > > var client MetricsClient > > and then initialize it using sync.Once(). > > Is it required for some reason that the

[go-nuts] Re: How to decrypt data with AES in golang

2016-06-30 Thread awickert
Am Donnerstag, 30. Juni 2016 08:57:11 UTC+2 schrieb Lazytiger: > > Hi, all > > I have a C# code to decrypt data as following > > public static string test(string input, string key) > { > if (((input == null) || string.IsNullOrEmpty(input.Trim())) > || ((input == "fals