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
|
||||
|
||||
go:
|
||||
- go1.6
|
||||
- go1.7
|
||||
- tip
|
||||
|
|
|
@ -30,7 +30,7 @@ Ideally suited for both experienced and novice Developers. <br/>
|
|||
|
||||
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
|
||||
$ go get -u github.com/kataras/iris/iris
|
||||
|
|
6
ssh.go
6
ssh.go
|
@ -222,10 +222,10 @@ var (
|
|||
|
||||
COMMANDS:
|
||||
{{ range $index, $cmd := .Commands }}
|
||||
{{- $cmd.Name }} - {{ $cmd.Description }}
|
||||
{{- $cmd.Name }} | {{ $cmd.Description }}
|
||||
{{ end }}
|
||||
USAGE:
|
||||
ssh myusername@{{ .Hostname}} -p {{ .Port }} {{ first .Commands}}
|
||||
ssh myusername@{{ .Hostname}} {{ .PortDeclaration }} {{ first .Commands}}
|
||||
or just write the command below
|
||||
VERSION:
|
||||
{{ .Version }}
|
||||
|
@ -482,7 +482,7 @@ func (s *SSHServer) writeHelp(wr io.Writer) {
|
|||
hostname := parseHostname(s.Host)
|
||||
|
||||
data := map[string]interface{}{
|
||||
"Hostname": hostname, "Port": port,
|
||||
"Hostname": hostname, "PortDeclaration": "-p " + strconv.Itoa(port),
|
||||
"Commands": append(s.Commands, standardCommands...),
|
||||
"Version": Version,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user