mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Fix go1.6 issue https://github.com/kataras/iris/issues/378
This commit is contained in:
parent
2d067ac081
commit
d03c9ad231
|
@ -1,5 +1,5 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- go1.6
|
- go1.7
|
||||||
- tip
|
- tip
|
||||||
|
|
|
@ -30,7 +30,7 @@ Ideally suited for both experienced and novice Developers. <br/>
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
The only requirement is the [Go Programming Language](https://golang.org/dl), at least v1.6
|
The only requirement is the [Go Programming Language](https://golang.org/dl), at least v1.7
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ go get -u github.com/kataras/iris/iris
|
$ go get -u github.com/kataras/iris/iris
|
||||||
|
|
8
ssh.go
8
ssh.go
|
@ -219,13 +219,13 @@ var (
|
||||||
SSHBanner = banner
|
SSHBanner = banner
|
||||||
|
|
||||||
helpMessage = SSHBanner + `
|
helpMessage = SSHBanner + `
|
||||||
|
|
||||||
COMMANDS:
|
COMMANDS:
|
||||||
{{ range $index, $cmd := .Commands }}
|
{{ range $index, $cmd := .Commands }}
|
||||||
{{- $cmd.Name }} - {{ $cmd.Description }}
|
{{- $cmd.Name }} | {{ $cmd.Description }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
USAGE:
|
USAGE:
|
||||||
ssh myusername@{{ .Hostname}} -p {{ .Port }} {{ first .Commands}}
|
ssh myusername@{{ .Hostname}} {{ .PortDeclaration }} {{ first .Commands}}
|
||||||
or just write the command below
|
or just write the command below
|
||||||
VERSION:
|
VERSION:
|
||||||
{{ .Version }}
|
{{ .Version }}
|
||||||
|
@ -482,7 +482,7 @@ func (s *SSHServer) writeHelp(wr io.Writer) {
|
||||||
hostname := parseHostname(s.Host)
|
hostname := parseHostname(s.Host)
|
||||||
|
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"Hostname": hostname, "Port": port,
|
"Hostname": hostname, "PortDeclaration": "-p " + strconv.Itoa(port),
|
||||||
"Commands": append(s.Commands, standardCommands...),
|
"Commands": append(s.Commands, standardCommands...),
|
||||||
"Version": Version,
|
"Version": Version,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user