[go-nuts] go get tls handshake timeouts

2023-08-25 Thread Rich
When I run 'go get github.com/user/packge' I get a TLS Handshake : go: module github.com/user/package: Get "https://proxy.golang.org/github.com/user/package/@v/list": net/http: TLS handshake timeout So I set GOPROXY=direct Now I get go: downloading github.com/user/package v0.5.0 go:

Re: [go-nuts] Best IDE for GO ?

2023-08-19 Thread Rich
I used to hate it because costs so darn much but goland is my ide. I dnt hate vs code, I've done vm and really like neovim nv chad, but at the end I just am more productive in goland. Even tried fleet but always come back to goland.for me the time saved is worth the price. On Saturday, August

Re: [go-nuts] is running interactive or not

2023-06-08 Thread Rich
oes not work. I tend to use a flag like > -batch or -noninteractive to trigger the correct behavior from within > scripts. Less magic, more control. > > Rich schrieb am Do. 8. Juni 2023 um 20:19: > >> Hi, >> >> I have a program I am writing that stops and asks

[go-nuts] is running interactive or not

2023-06-08 Thread Rich
Hi, I have a program I am writing that stops and asks the user for input, in this case it's a passphrase used to encrypt output. I want the program to also be able to be used in a script, and if in a script use a predefined value as the passphrase. What I'd like to know is how to detect if

Re: [go-nuts] Learning Go on internal server

2023-02-17 Thread Rich
ment caching dependencies may be a good > thing. With modules this is done by running your own Go proxy. Take a look > at > https://github.com/gomods/athens > or > https://github.com/goproxy/goproxy. > > Rich schrieb am Do. 16. Feb. 2023 um 17:48: > >> So, I've bee

[go-nuts] Learning Go on internal server

2023-02-16 Thread Rich
So, I've been writing go code for my company, and many have expressed an interest in learning Go. So what I want to do is create a learning environment for them on one of our 'tools' servers. The problem is that the tools server doesn't have good connectivity to the internet. So using go mod

Re: [go-nuts] liteide x38.2 released

2023-02-16 Thread Rich
Glad to see ya'll are still working on Liteide. I've used it in the past and for a while was my main Go IDE. I'll have to give it another try. On Monday, February 13, 2023 at 7:12:44 PM UTC-5 vfc wrote: > Hi all, liteide x38.2 released! > > * update gotools to fix generic code lookup and code

[go-nuts] Error Handling

2023-02-07 Thread Rich
In most of my code I create a function to handle errors. looks something like this: func errorHandle(err error, str string, ex bool) { if err != nil { fmt.Printf("error: %s -- %v\n",str, err) } if ex { os.Exit(1) } } This cleans up my code: inFile, err

[go-nuts] TCP hand off?

2023-02-07 Thread Rich
I have a database that I want to be able to allow users to connect to. I didn't design this database, just trying to come up with a way to allow users to connect. The way they set this database up is that there are three users, Read, Read/write, and Admin. What I have done is write a tool

Re: [go-nuts] How to correctly use exec.Command and properly clean up all pipes

2023-02-07 Thread Rich
Not sure if this helps at all, but I've stopped using Go's exec and use bitfield's script command. You can do so much more with it than you can with the standard exec and it's shorter to implement than Go's exec. https://github.com/bitfield/script On Monday, February 6, 2023 at 5:43:45 PM

[go-nuts] Re: how to get the json line number when getting unmarshal errors?

2023-02-07 Thread Rich
I use a tool called hjson hjson/hjson-go: Hjson for Go (github.com) This not only lets you put comments into the code but many times can be used to fix json. Some of my tools the user has to generate a JSON payload then send it with my tool. I will take

[go-nuts] Re: Achieving C/C++/Rust comparable performance with Golang

2022-12-16 Thread Rich
Too often people look at one benchmark -- speed in execution to determine what the best language is. Is Rust better than Go because it can run a benchmark faster? The problem the original developers were trying to solve wasn't that C/C++ or other languages couldn't run fast enough, Ken

[go-nuts] Re: Go Get Issues

2022-09-26 Thread Rich
there and you wouldn't need to do a go get on it. I am not sure where it stores it today, if it were possible to somehow cache it manually like that? Thanks for the help Christoph!!! On Sunday, September 25, 2022 at 7:20:48 AM UTC-4 christoph...@gmail.com wrote: > Hi Rich, > > I guess,

[go-nuts] Re: Go Get Issues

2022-09-23 Thread Rich
https://repository.web.mycompany.com/ And GOPRIVATE set to repository.web.mycompany.com On Friday, September 23, 2022 at 4:59:44 PM UTC-4 Rich wrote: > I have been having a really hard time with Go Get It just isn't working. > We have a private Repositiory, that repository requires us to use SSH. &g

Re: [go-nuts] Using golang variable in bash script Command

2022-09-23 Thread Rich
I do a lot of 'scripting' like things with Go - I found that using github.com/bitfield/script makes it a TON easier to run commands and you can pipe a command into another command, etc. Worth checking it out. On Tuesday, September 20, 2022 at 9:13:03 AM UTC-4 drro...@gmail.com wrote: > I've

[go-nuts] Go Get Issues

2022-09-23 Thread Rich
I have been having a really hard time with Go Get It just isn't working. We have a private Repositiory, that repository requires us to use SSH. There is no option for using https. So, I've configured my git config "~/.gitconfig' ``` [url

Re: [go-nuts] Application Monitoring

2022-08-17 Thread Rich
n's use-case. > > Prometheus is not a standard Linux tool, but it is open source, > production-ready, language-agnostic, and widely used. > > > On Mon, Aug 15, 2022, 8:01 AM Rich wrote: > >> My company relies heavily on Java., Java apps we run require Introscope >> or Glowro

[go-nuts] Application Monitoring

2022-08-15 Thread Rich
My company relies heavily on Java., Java apps we run require Introscope or Glowroot to monitor them and many outages have been solved using those tools. If we were to write our apps in Go -- would we need an application monitoring tool, or would standard Linux tools suffice? Thanks-- Rich

Re: [go-nuts] Go Mod SSH doesn't work

2022-08-05 Thread Rich
> On Fri, Aug 5, 2022 at 9:22 AM Rich wrote: > >> Go modules have been frustrating working with internal sites that use >> ssh. There is NO option to use HTTP. THere is no option to use a proxy. So >> I set up my go mod to contain >> >> go.mod file: >

[go-nuts] Go Mod SSH doesn't work

2022-08-05 Thread Rich
Go modules have been frustrating working with internal sites that use ssh. There is NO option to use HTTP. THere is no option to use a proxy. So I set up my go mod to contain go.mod file: require codecloud.web.mycompany.com/devgroup/mypackage.git v1.0.0 .gitconfig file: [url

[go-nuts] Microsoft Adaptive card

2022-07-18 Thread Rich
to render the cards. I do see there is a go package to create them, but not to render them. Thanks, Rich -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to g

Re: [go-nuts] cmd/trace: Indirect reporting of OS Latency?

2022-02-12 Thread Rich Moyse
Robert, thanks for your reply - especially the link to *perf sched*! I plan to run the go program on Windows physical machine. I'll post my results once done. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

[go-nuts] cmd/trace: Indirect reporting of OS Latency?

2022-02-11 Thread Rich Moyse
*TLDR* I’d be grateful if someone could either confirm or dismiss the effect of OS, go runtime, and/or Hypervisor latency on the output of a goroutine trace. The trace report displays empty gaps of 3-14ms where expected periodic goroutines should execute, as there’s a goroutine triggered by

[go-nuts] Add to existing Go Package

2022-01-17 Thread Rich
What I want to do is extend the go standard log package. I am using log to write logfiles, but there are two things with it I need to extend. The first is a 'Format' string, which allows me to change the time format string log uses. The second is to be able to print to both logfile and

Re: [go-nuts] Trace explicit goroutine function names replaced by synthetic ones 1.18beta1

2022-01-14 Thread Rich Moyse
Ian: Appreciate your guidance. Created issue #50622 <https://github.com/golang/go/issues/50622>. Rich On Friday, January 14, 2022 at 1:12:38 PM UTC-5 Ian Lance Taylor wrote: > On Fri, Jan 14, 2022 at 10:03 AM Rich Moyse wrote: > > > > When viewing a trace

[go-nuts] Trace explicit goroutine function names replaced by synthetic ones 1.18beta1

2022-01-14 Thread Rich Moyse
When viewing a trace produced by 1.18beta1, the goroutine function names reflect synthetically generated ones typically assigned to anonymous/closure functions. For example, a function explicitly named: "*msgSend*" in the "main" package appears on the trace "/goroutines" page as:

[go-nuts] Re: setuid root

2021-09-20 Thread Rich
Thanks -- that worked. On Monday, September 20, 2021 at 2:11:21 PM UTC-4 Tamás Gulácsi wrote: > chmod 4755 is not enough. Your binary must be owned by root, to run root - > setuid means "run as owner". > > Rich a következőt írta (2021. szeptember 20., hétfő, 19:54:33 UTC

[go-nuts] Re: setuid root

2021-09-20 Thread Rich
OK -=- My mistake. When you setuid a program it sets the user to the owner of the file. So I owned the file, so it would run as me. When I did a chown root myapplication -- it runs like it should. Thanks everyone for the help. On Monday, September 20, 2021 at 1:54:33 PM UTC-4 Rich wrote

[go-nuts] Re: setuid root

2021-09-20 Thread Rich
Yes. I tried running an exec: cmd=exec.Command("whoami") and it came as my user id not root. But to set the permissions I'd run: 'chmod 4755 myapplication' On Monday, September 20, 2021 at 11:20:39 AM UTC-4 Tamás Gulácsi wrote: > You mean "chown root app; chmod 47

[go-nuts] setuid root

2021-09-20 Thread Rich
I am trying to create a go program so that I can peform an action that is more complex than the example I have below. I can't give sudo right so run the application due to some policy we have at work that certain groups can only have read permissions. The company also have a policy that states

[go-nuts] Go Doc Tip and Request

2021-08-04 Thread Rich
I've been dabbling in Go since 2009 -- I grew accustomed to godoc.com, and the way godoc formats the documentation. Not that the new pkg.go.dev isn't any good -- its a matter of preference because you're used to seeing it one way, and pkg.go.dev displays it another. I am not a full time

Re: [go-nuts] Go 1.16 and modules

2021-03-29 Thread Rich
I really WANT to use go modules on all my projects, but there are times I just want to write a quick piece of code that I can 'go run'. Its usually just 20 lines, just used to test something out like a rest call to an internal server (can't do that on go playground) and for me go modules just

[go-nuts] go mod to private repository using ssh

2021-02-18 Thread Rich
I've been avoiding the move to using go mod. Mainly because every time I try it chokes on any of the internal repositories i have setup using ssh://g...@mycoderepo.com:7900. I put in to my ~/.gitconfig: [url "ssh://g...@mycoderepo.com:7900"] insteadOf = https://mycoderepo.com/src So

Re: [go-nuts] net/http TLS issue

2020-10-19 Thread Rich
, 2020 at 9:01:23 PM UTC-4 pat2...@gmail.com wrote: > On Sunday, October 18, 2020 at 4:39:46 PM UTC-4 Rich wrote: > >> I have no problem writing this myself and I already have ideas on what I >> am going to do, but before I do that I thought I'd ask and see if anyone >> kn

Re: [go-nuts] net/http TLS issue

2020-10-18 Thread Rich
nable interval. > > On Fri, Oct 16, 2020 at 2:06 PM Rich wrote: > >> I don't know if we're the only company on the planet that demands the >> https keys have a passcode to them but I've been having a heck of a time >> trying to find a good way to serve https using

[go-nuts] net/http TLS issue

2020-10-16 Thread Rich
I don't know if we're the only company on the planet that demands the https keys have a passcode to them but I've been having a heck of a time trying to find a good way to serve https using a key with a passphrase. err := ListenAndServeTLS(addr, certFile, keyFile string

[go-nuts] SQL Do I use Query or Exec?

2020-09-15 Thread Rich
I am writing a program in Go that allows users to put a query to a database. This program uses multiple different drivers such as Postgres, MySQL, and I want to be able to add other drivers as needed. This is supposed to be something a user can use and depending on how the configuration file

[go-nuts] generics go2go Type List in Interface - Struct Type

2020-08-11 Thread Rich Moyse
Attempting to use a Type List in an Interface to restrict the types allowed to instantiate a generic function (example in go2go

[go-nuts] Re: TCPScan -- Check TCP Connectivity

2020-01-28 Thread Rich
I didn't leave the URL to github: https://github.com/rmasci/tcpscan Sorry about that. On Tuesday, January 28, 2020 at 10:23:17 AM UTC-5, Rich wrote: > > This originally started as a learning exercise in Go Routines when going > through a course on Go Programming. I needed a r

Re: [go-nuts] JSON: Having trouble parsing map keys with dots like {"foo.bar":"baz"}

2020-01-28 Thread Rich
All of these are good suggestions -- but when working with JSON I find this package to be very helpful: https://github.com/hjson/hjson-go I use json as a config file for my programs and when users fat finger the config, forget a comma or put a space in the wrong place -- this for the most

[go-nuts] TCPScan -- Check TCP Connectivity

2020-01-28 Thread Rich
This originally started as a learning exercise in Go Routines when going through a course on Go Programming. I needed a real world programming example, and every day it seems I have to perform checks for tcpconnectivity -- and worse yet our security guys didn't like putting on netcat or nmap

[go-nuts] Scanning TCP Hosts using TCPSCAN

2020-01-28 Thread Rich
This originally started as a learning exercise in Go Routines when going through a course on Go Programming. I needed a real world programming example, and every day it seems I have to perform checks for tcpconnectivity -- and worse yet our security guys didn't like putting on netcat or nmap

[go-nuts] Help get me started on a project

2019-12-17 Thread Rich
I need to write a program that runs an external program and the user needs to interact with that external program. So I know I can do something like this: func main() { cmd := exec.Command("/usr/local/bin/interactiveApp") cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr

[go-nuts] Show rows affected from query

2019-10-03 Thread Rich
don't want to have a decision tree to figure out based on the query given to use sql.Exec or sql.Query. I am not that good of a DBA to be able to figure that out. :) Thanks, Rich -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

Re: [go-nuts] JSON Marshal for config file url encoding string.

2019-08-12 Thread Rich
rsen wrote: > > Documented here: https://golang.org/pkg/encoding/json/#Marshal > > There is also a description of how to avoid it. > > On Mon, Aug 12, 2019 at 7:39 PM Rich > > wrote: > >> Hi I have an application that I wrote that uses JSON for the config f

[go-nuts] JSON Marshal for config file url encoding string.

2019-08-12 Thread Rich
Hi I have an application that I wrote that uses JSON for the config file. The application is a chatbot I use internally and allows users to run linux commands to get information both locally and via ssh. The chatbot interface uses basic html to render the output so 90% of the time I want to

Re: [go-nuts] Println output missing in Windows, but not Linux

2019-03-15 Thread Rich Podraza
Thanks, it did seem to be something like that. In the cmd window I couldn't see it, but when I wrote to a file I could see garbage bytes at the end of my line On Tue, Mar 12, 2019 at 10:34 PM Kurtis Rader wrote: > I'm a new Go programmer but a grey beard (I started programming in the > 1970's).

Re: [go-nuts] Visual Studio Code oddity with Go

2019-03-03 Thread Rich
`go install` instead of `go build` because then I don't have to > remember not to let it slip through into a commit. > > On Sunday, 3 March 2019 15:29:28 UTC+1, Rich wrote: >> >> Thank you!! This worked for me. $GOPATH is set to ~/go, but when it was >> installing g

Re: [go-nuts] Visual Studio Code oddity with Go

2019-03-03 Thread Rich
Thank you!! This worked for me. $GOPATH is set to ~/go, but when it was installing gocode it installed to /usr/local/go/bin instead of ~/go/bin -- this is because the $GOBIN variable is set to /usr/local/go/bin. On Saturday, February 23, 2019 at 3:05:58 PM UTC-5, Joseph Pratt wrote: > >

Re: [go-nuts] Visual Studio Code oddity with Go

2019-02-21 Thread Rich
Yeah. When I install the tool, it always gives me a success. When I selected all of them it also gave me a success. Thanks! On Thursday, February 21, 2019 at 10:42:33 PM UTC-5, andrey mirtchovski wrote: > > > I tried the solution posted by Andrey (Thank you!) and it still does the > popup

Re: [go-nuts] Visual Studio Code oddity with Go

2019-02-21 Thread Rich
ay ago for those searching for > answers: > > try "command-shift-p" or ctrl-shift-p depending on your operating > system, to bring the "all commands" pop-up. there you should be able > to find "Go: Install/Update tools". click on the checkboxes. hit

[go-nuts] Visual Studio Code oddity with Go

2019-02-20 Thread Rich
I tried googling this but I not been able to find a solution, hopefully I can ask this here and someone else knows how to fix this. I use Visual Studio Code -- because it's free. The issue I am having is that every time I use Visual Studio Code I get the popup that says: The Go extension is

Re: [go-nuts] Re: Temporarily allow unused variables

2019-01-09 Thread Rich
Yes at times it's a pain, after programming for a while in Go you just get used to it, and I seldom run into an unused variable. Use Visual Studio Code, you'll get a red squiggly line and an error long before you ever try to compile the code. If you really want to keep the variable, variable=_

Re: [go-nuts] Remove path from error messages

2018-10-16 Thread Rich
t;OOOpps %v\n", err) } x := 100 / divBy fmt.Println(x) } yes I know it's easy to catch a divide by zero, but it's to show the error... When I run this: What do you want to divide by? Number: 0 Great, divide 100 by 0 panic: runtime error: integer divide by zero gorouti

[go-nuts] Remove path from error messages

2018-10-16 Thread Rich
I apologize if this has been asked before but I searched google and this group and didn't find it. How do you remove the path from the error messages? So I have a valid error: 2018/10/16 18:13:12 [error] in main.checkMaster[/Users/rich/go/mysqlrun/mysqlrun.go:739] Error 1045: Access denied

[go-nuts] Re: UI in golang

2018-09-03 Thread Rich
I've never worked with it but it looks like GTK might be a good choice. It's cross platform and says there is a version for Go. https://www.gtk.org/language-bindings.php On Monday, September 3, 2018 at 12:49:12 PM UTC-4, Diego Rocha wrote: > > What UI framework are you using in production?

[go-nuts] Re: My views on Go and why it's better than Scripting

2018-03-06 Thread Rich
I am a systems administrator. I find it easier and faster to write a program in Go than it is to script it in Bash. Since writing scripts is something most Sys Admins do I've had to write them in Perl, PHP, TCL, Ruby, etc. and the BIGGEST frustration is that I would get a script written

Re: [go-nuts] [security] Go 1.8.4 and Go 1.9.1 are released

2017-10-06 Thread Rich
On linux / mac I just become root, cd to /usr/local then run this one liner: Mac: curl https://storage.googleapis.com/golang/go1.9.1.darwin-amd64.tar.gz | tar zxvf - Linux64: curl https://storage.googleapis.com/golang/go1.9.1.linux-amd64.tar.gz | tar zxvf - That will overwrite the

Re: [go-nuts] Re: Graphing libraries in golang

2017-09-28 Thread Rich
Not sure if this applies but I did some graphing using this: https://godoc.org/github.com/ajstarks/svgo On Wednesday, September 27, 2017 at 8:35:49 PM UTC-4, kortschak wrote: > > On Wed, 2017-09-27 at 08:54 -0700, Volker Dobler wrote: > > One from

[go-nuts] Unmarshal Json

2017-09-26 Thread Rich
I have a json I have to parse, and in that json one of the keys changes depending on the data being generated. For example: { "Servers": { "IPAddress=10.1.1.123": { "name": "DNS Server1", "type": "Apache Webserver" }, "IPAddress=10.1.1.124": { "name": "DNS

[go-nuts] Re: Golang, Google App Engine, Windows 10

2017-09-21 Thread Rich
As a Linux guy myself... Jet Brains makes an IDE for Windows, Linux and Mac called Gogland that I find to be a very good IDE. If forced to use Windows, I would install Cygwin which will give you a Linux shell environment. As for compiling, I run a mac and build binaries for Linux / Windows

[go-nuts] Re: Golang, Google App Engine, Windows 10

2017-09-21 Thread Rich
As a Linux guy myself... Jet Brains makes an IDE for Windows, Linux and Mac called Gogland that I find to be a very good IDE. If forced to use Windows, I would install Cygwin which will give you a Linux shell environment. As for compiling, I run a mac and build binaries for Linux / Windows

[go-nuts] Monitoring activity stdin / stdout

2017-08-29 Thread Rich
I am trying to think of a way to monitor stdin... I have this small program that spawns a bash shell. What I am looking for is to detect inactivity package main import ( "os/exec" "os" ) func main() { shellCmd := exec.Command("/bin/bash", "-l") //shellCmd :=

[go-nuts] Re: Go 1.9 is released

2017-08-25 Thread Rich
One liner for installing on Linux. You can change the URL in the curl for other OS such as Mac, or any Unix like OS: cd $GOROOT;cd ..;curl https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz | sudo tar zxvf -;cd;/usr/local/go/bin/go version if you don't have GOROOT Set: cd

[go-nuts] Re: Go 1.9 is released

2017-08-25 Thread Rich
 One Liner for installing on Linux / Mac or other Unix like OS: (well almost) 1. Become root 2. cd /usr/local run this command: curl https://storage.googleapis.com/golang/go1.9.darwin-amd64.tar.gz 2> /dev/null | tar zxvf - Just make sure you change the URL to curl for the OS version you're

[go-nuts] Re: Go 1.9 is released

2017-08-25 Thread Rich
 One Liner for installing on Linux / Mac or other Unix like OS: (well almost) 1. Become root 2. cd /usr/local run this command: curl https://storage.googleapis.com/golang/go1.9.darwin-amd64.tar.gz 2> /dev/null | tar zxvf - Just make sure you change the URL to curl for the OS version you're

[go-nuts] Re: Go 1.9 is released

2017-08-25 Thread Rich
  9:20 AM (less than a minute ago)   One Liner for installing on Linux / Mac or other Unix like OS: (well almost) 1. Become root 2. cd /usr/local run this command: curl https://storage.googleapis.com/golang/go1.9.darwin-amd64.tar.gz 2> /dev/null | tar zxvf - Just make sure you change the

[go-nuts] Re: Go 1.9 is released

2017-08-25 Thread Rich
One Liner for installing on Linux / Mac or other Unix like OS: (well almost) 1. Become root 2. cd /usr/local run this command: curl https://storage.googleapis.com/golang/go1.9.darwin-amd64.tar.gz 2> /dev/null | tar zxvf - On Thursday, August 24, 2017 at 6:44:25 PM UTC-4, Chris Broadfoot

[go-nuts] Re: [Go2] Reflect

2017-08-06 Thread Rich
I don't understand... doesn't Reflect already do this? https://play.golang.org/p/CIm7aISztv On Saturday, August 5, 2017 at 12:58:52 PM UTC-4, Gert wrote: > > package main > > import ( > "fmt" > "reflect" > ) > > func main() { > x := 4 > v1 := reflect.ValueOf(x) > fmt.Println("type:", v1.Type())

[go-nuts] Re: Write a program for Linux in Go lang which can run any command (of coder's choice) on another machine (privately or publicly accessible) and prints its output.

2017-04-12 Thread Rich
Let me get you pointed in the right direction. I do this ALL the time. First it to learn the Godoc site. Godoc is an awesome site that you can search for different community written extensions to go, as well as get documentation on the existing go language packages -- if you're going to write

[go-nuts] Go Crypto/cipher and DES3 vs Openssl

2017-03-01 Thread Rich
comes out can be decrypted by something other than another go program? Thanks, Rich -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email

[go-nuts] Re: Go UDP performance

2017-02-20 Thread Rich
I would wireshark the data coming in to both sides so that you can see when the packet was transmitted, and when it was received by the other side. That way you can isolate if it's network or Go. On Monday, February 20, 2017 at 4:02:28 PM UTC-5, Tharaneedharan Vilwanathan wrote: > > Hi All, >

[go-nuts] Re: Pass variables to bash

2017-02-02 Thread Rich
t seems to work. On Thursday, February 2, 2017 at 11:23:49 AM UTC-5, Rich wrote: > > Hi All, > > My dev team did a very bad thing and issued lots of scripts that they > wrote source a file that is in clear text which contains usernames / > passwords etc. Without having to re-w

[go-nuts] Pass variables to bash

2017-02-02 Thread Rich
4") } Bash Script: #!/bin/bash /usr/local/bin/SetPass echo $MyPass This is a simplistic example, in the real script I'd do things like look at the user / groups that are running the program to ensure that they've got the rights to run. Thanks, Rich -- You received this message

Re: [go-nuts] Parse JSON question

2017-01-30 Thread Rich
Thank you!! That worked brilliantly! On Monday, January 30, 2017 at 10:39:56 AM UTC-5, Konstantin Khomoutov wrote: > > On Mon, 30 Jan 2017 07:14:23 -0800 (PST) > Rich <rma...@gmail.com > wrote: > > > If I have JSON that looks like this: > [...] > > >

[go-nuts] Parse JSON question

2017-01-30 Thread Rich
If I have JSON that looks like this: > > { > >"value" : { > > "IPAddr=10.1.1.12" : { > > "ReplyTime" : { > > "minTime" : 0, > > "maxTime" : 0, > > "averageTime" : 0 > > } > > } > > } > > } > > Normally you'd setup a struct:

[go-nuts] Re: Go is two times slower than python code?

2016-12-01 Thread Rich
Have you tried searching https://godoc.org for a PCRE that may suite better? https://godoc.org/github.com/glenn-brown/golang-pkg-pcre/src/pkg/pcre On Tuesday, March 9, 2010 at 9:52:16 AM UTC-5, Alex Dong wrote: > > I'm writing a simple 'word picker' using golang and python. It > basically

[go-nuts] Re: [ANN] (GUI) Qt binding which supports Windows / macOS / Linux / Android / iOS / Sailfish OS / Raspberry Pi

2016-11-13 Thread Rich
This looks very well done. I've not done any real programming in it but looking over the github it looks like this is well on it's way. Thank you!! i have a few programs I've been meaning to write that needed a gui, I'll be giving this a shot. On Thursday, November 10, 2016 at 3:34:36 PM

[go-nuts] issue with sending JSON via HTTP

2016-10-25 Thread Rich
Hi All, I have code that is similar to this: https://play.golang.org/p/zZ8EQ-R6cb When I run it I get the following error: 2016/10/25 12:19:56 Body: 400 {"message":"The JSON stream reader doesn't support chunking."} So I changed my code to this: https://play.golang.org/p/NYV5SdCtnt and I get

[go-nuts] [ANN] Leader Election library using Zookeeper

2016-08-10 Thread Rich Youngkin
back, improvements, bug reports, etc. Cheers, Rich -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. F

[go-nuts] Linking c libraries

2016-08-04 Thread Rich
I have an issue in that I wrote this application that uses github.com/mattn/go-oci8 and it runs on Linux x64. I get the following error: "error while loading shared libraries: libclntsh.so.11.1" How can I compile it so that when run the executable will look to a specific path for the