Re: [go-nuts] Having trouble in running a go-git api example

2022-10-18 Thread PK
ay, October 18, 2022 at 4:06:19 PM UTC+5:30 skarl...@gmail.com wrote: > On 2022. Oct 18., at 11:19, PK wrote: > > no, Do we need to set-up something. If yes can you please let me know? > > > Yep. Well, you are trying to push something to somewhere, right? So you > need a re

[go-nuts] Re: Having trouble in running a go-git api example

2022-10-18 Thread PK
no, Do we need to set-up something. If yes can you please let me know? On Tuesday, October 18, 2022 at 10:28:27 AM UTC+5:30 skarl...@gmail.com wrote: > Hello. > > Did you set up any remotes for the folder that you are trying to push? > > On Monday, 17 October 2022 at 13:16:12 UTC+2 princ...@gmai

[go-nuts] Having trouble in running a go-git api example

2022-10-17 Thread PK
Hi, I am trying to run example provided here( https://github.com/go-git/go-git/tree/master/_examples) 1) firstly I run the clone example by cloning a repo( https://github.com/go-git/go-git/blob/master/_examples/clone/auth/basic/access_token/main.go). (it was successful) 2) Then I run the commit

[go-nuts] Having trouble in running a go-git api example

2022-10-12 Thread PK
Hi, I am trying to run example provided here(https://github.com/go-git/go-git/tree/master/_examples) 1) firstly I run the clone example by cloning a repo(https://github.com/go-git/go-git/blob/master/_examples/clone/auth/basic/access_token/main.go). (it was successful) 2) Then I run the commit

[go-nuts] Issue with go-git API

2022-10-09 Thread PK
I am trying to use this git api(*https://github.com/go-git/go-git*), but before that I tried to run the provided example (i.e. cloning the repo by golang). So I run the program *https://github.com/go-git/go-git/blob/master/_examples/clone/main.go* So when I run this program I used to get this e

Re: [go-nuts] GO API to upload a directory in the github

2022-10-03 Thread PK
:508:14: undefined: io.Discard /root/go/src/golang.org/x/crypto/ssh/session.go:521:14: undefined: io.Discard On Wednesday, September 28, 2022 at 11:51:36 PM UTC+5:30 Reto wrote: > On Tue, Sep 27, 2022 at 09:46:04PM -0700, PK wrote: > > I want to write an go script, to upload a fold

[go-nuts] GO API to upload a directory in the github

2022-09-27 Thread PK
HI Everyone, I want to write an go script, to upload a folder in the github. Can anyone please let How I can do this. Is there any resources available for this. Please help me in this. Eg: I have a temp folder in my local machine, I want to upload it to one of the github repo. -- You received

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

2022-09-19 Thread PK
;find . -name %s", search))* On Monday, September 19, 2022 at 3:31:12 PM UTC+5:30 Jan Mercl wrote: > On Mon, Sep 19, 2022 at 11:50 AM PK wrote: > > > search:=scanner.Text() > > cmd1,err:=exec.Command("bash", "-c", "find . -name '*$search*

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

2022-09-19 Thread PK
HI everyone, can anyone help me with this: I want to list all the files having some user's entered string as substring in their name. So I wrote these commands: *scanner := bufio.NewScanner(os.Stdin)fmt.Println("Enter the substring name")scanner.Scan()search:=scanner.Text()cmd1,err:=exec.Com

[go-nuts] How to run a java file using go script.

2022-08-03 Thread PK
Hi everyone, I am new to golang. I was writing a script, with which I want to run a java program. Can anyone please let me know how to run java file using go scripts. Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from t