Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6a43836f
authored
Aug 20, 2015
by
Iwasaki Yudai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `go fmt` to check format of code
1 parent
161d29b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
app/resource.go
wercker.yml
app/resource.go
View file @
6a43836
...
...
@@ -12,11 +12,11 @@ import (
"compress/gzip"
"fmt"
"io"
"strings"
"os"
"time"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
)
func
bindataRead
(
data
[]
byte
,
name
string
)
([]
byte
,
error
)
{
...
...
@@ -149,7 +149,7 @@ func Asset(name string) ([]byte, error) {
// It simplifies safe initialization of global variables.
func
MustAsset
(
name
string
)
[]
byte
{
a
,
err
:=
Asset
(
name
)
if
(
err
!=
nil
)
{
if
err
!=
nil
{
panic
(
"asset: Asset("
+
name
+
"): "
+
err
.
Error
())
}
...
...
@@ -226,14 +226,12 @@ type bintree struct {
Func
func
()
(
*
asset
,
error
)
Children
map
[
string
]
*
bintree
}
var
_bintree
=
&
bintree
{
nil
,
map
[
string
]
*
bintree
{
"bindata"
:
&
bintree
{
nil
,
map
[
string
]
*
bintree
{
"gotty.js"
:
&
bintree
{
bindataGottyJs
,
map
[
string
]
*
bintree
{
}},
"hterm.js"
:
&
bintree
{
bindataHtermJs
,
map
[
string
]
*
bintree
{
}},
"index.html"
:
&
bintree
{
bindataIndexHtml
,
map
[
string
]
*
bintree
{
}},
"gotty.js"
:
&
bintree
{
bindataGottyJs
,
map
[
string
]
*
bintree
{}},
"hterm.js"
:
&
bintree
{
bindataHtermJs
,
map
[
string
]
*
bintree
{}},
"index.html"
:
&
bintree
{
bindataIndexHtml
,
map
[
string
]
*
bintree
{}},
}},
}}
...
...
@@ -283,4 +281,3 @@ func _filePath(dir, name string) string {
cannonicalName
:=
strings
.
Replace
(
name
,
"
\\
"
,
"/"
,
-
1
)
return
filepath
.
Join
(
append
([]
string
{
dir
},
strings
.
Split
(
cannonicalName
,
"/"
)
...
)
...
)
}
wercker.yml
View file @
6a43836
...
...
@@ -8,6 +8,10 @@ build:
code
:
|
go get github.com/tools/godep
godep restore
-
script
:
name
:
check format
code
:
|
if [ `go fmt ./... | wc -l` -gt 0 ]; then echo "go fmt error"; exit 1; fi
-
tcnksm/gox
:
os
:
"
darwin
linux"
arch
:
"
amd64"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment