[go-nuts] How to renderer the multiple html pages ?

2019-02-02 Thread Robert Hsiung
Hi all: I make three html pages as index.html ,wps1.html and wps2.html. The three html pages are under the same folder. The expected flow is to login index.html first and access wps1 or wps2 by index page hyperlink. And then,I edit the golang source file and build exe file . But I launch

[go-nuts] How to do for inserting input data(http request post method) into postgresql database

2019-01-30 Thread Robert Hsiung
Hi all: I used net/http package to build up the http server with golang. Also,I make the simple Html page for front end . But I don't know how to do for inserting input data(http request post method) into postgresql database ? Any one could provide the sample code ? Thanks so much. BR Rober

[go-nuts] Stor file by ftp ,but show error as "553 Could not create file"

2017-02-08 Thread Robert Hsiung
Hi all: I tried to Stor file by ftp ,but show error as "553 Could not create file". It is successful to use filezilla client,so ftp server is ok. Please give me some suggestions. Thanks so much. C:/Go/bin/go.exe build -i [F:/go/ftp_client] Success: process exited with code 0. F:/go/ftp_

Re: [go-nuts] File transfer,but file size is zero

2017-02-07 Thread Robert Hsiung
Hi Konstantin Khomoutov: Thanks so much for your great support. It works. BR Robert 2017-02-07 18:24 GMT+08:00 Konstantin Khomoutov < flatw...@users.sourceforge.net>: > On Tue, 7 Feb 2017 02:01:51 -0800 (PST) > Robert Hsiung wrote: > > > I tried to upload file

Re: [go-nuts] File transfer,but file size is zero

2017-02-07 Thread Robert Hsiung
HI Jesse McNelis: It works. Thanks so much for your great support. BR Robert 2017-02-07 18:12 GMT+08:00 Jesse McNelis : > On Tue, Feb 7, 2017 at 9:01 PM, Robert Hsiung wrote: > > Hi all: > > I tried to upload file via SFTP,but the file size is zero when it is > >

Re: [go-nuts] ssh login failed

2017-02-07 Thread Robert Hsiung
; Maybe Han-Wen, copied, knows. > > > > > > On Mon, Feb 6, 2017 at 7:00 PM, Robert Hsiung > wrote: > >> > >> Hi Brad: > >> Thanks so much for your suggestion. I run "ssh -v" and get useful > >> information as attachment.So,I modi

[go-nuts] File transfer,but file size is zero

2017-02-07 Thread Robert Hsiung
Hi all: I tried to upload file via SFTP,but the file size is zero when it is done.Any suggestions? Thanks so much. //sftp upload package main import ( "fmt" "os" "github.com/pkg/sftp" "golang.org/x/crypto/ssh" ) func main() { c := &ssh.ClientConfig{ U

Re: [go-nuts] ssh login failed

2017-02-06 Thread Robert Hsiung
pported > methods remain > > It seems like your ssh server requires a different authentication mode and > doesn't support KeyboardInteractive (a password). > > Does the standard ssh client work? What does "ssh -v" say? > > > On Mon, Feb 6, 2017 at 1:25 AM, Rob

[go-nuts] ssh login failed

2017-02-06 Thread Robert Hsiung
Dear all: I tried to test sftp function with below coding,but occurred problem as below. Please give me suggestions. Thanks so much. ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain package main import ( "fmt" "github.com/pkg/sftp" "