[go-nuts] Re: go language sensitive editor?

2018-11-21 Thread Serge Voilokov
I am using micro editor: https://github.com/zyedidia/micro . It is terminal-based, supports mouse, uses ctrl+zxcv and shift+arrows for text manipulation, has a multi cursor feature, syntax highlighting. Written in golang. Easy to configure and change. I am using my fork (https://github.com/serge-

[go-nuts] Re: go language sensitive editor?

2018-11-23 Thread Serge Voilokov
PR them back, or you'd rather keep your fork to your self? > Thx. > > > On Wednesday, November 21, 2018 at 4:57:05 PM UTC-5, Serge Voilokov wrote: >> >> I am using micro editor: https://github.com/zyedidia/micro . It is >> terminal-based, supports

[go-nuts] Re: go language sensitive editor?

2018-11-24 Thread Serge Voilokov
needed? If so, have you documented anywhere how to use your > extensions? I didn't notice any mods to the README. > > Cheers! > > On Wednesday, November 21, 2018 at 4:57:05 PM UTC-5, Serge Voilokov wrote: >> >> I am using micro editor: https://github.com/zyedidia/mi

[go-nuts] Re: Running a Go server in a chroot

2017-10-23 Thread Serge Voilokov
you need /usr/local/go/lib/time/zoneinfo.zip. time.LoadLocation is using it. Also /usr/local/go/lib/time/ has a script to refresh timezones. On Monday, October 23, 2017 at 6:11:15 AM UTC-4, Juliusz Chroboczek wrote: > > Hi, > > I'm running a statically linked (CGO_ENABLED=0) Go network server in

[go-nuts] Re: How to mock structs with interdependent interface methods?

2019-12-15 Thread Serge Voilokov
You can partially mock the interface. For example I want to simulate AWS S3: // real S3 client type realAWSClient struct { s3iface.S3API } func processMyBuckets(s3 *s3iface.S3API) { list := s3.ListBuckets(...) // work with list } func main() { cli := &realAWSClient{S3API: s3.New(...)}