Skip to content

Commit

Permalink
Restructure repo and use full import paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertabcd committed Mar 23, 2014
1 parent cba997e commit 8ceb99c
Show file tree
Hide file tree
Showing 26 changed files with 17 additions and 17 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
pkg/
src/code.google.com/
src/github.com/
src/pttweb/templates/
templates/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions src/pttweb/article/render.go → article/render.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package article

import (
"ansi"
"bytes"
"pttbbs"

"github.com/ptt/pttweb/ansi"
"github.com/ptt/pttweb/pttbbs"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pttweb/article/terminal.go → article/terminal.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package article

import (
"ansi"
"github.com/ptt/pttweb/ansi"
)

// Flags
Expand Down
3 changes: 2 additions & 1 deletion src/pttweb/article/util.go → article/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package article
import (
"bytes"
"html"
"pttbbs"

"github.com/ptt/pttweb/pttbbs"
)

func fastWriteHtmlEscapedRune(buf *bytes.Buffer, ru rune) {
Expand Down
2 changes: 1 addition & 1 deletion src/pttweb/cache/cache.go → cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

"pttbbs"
"github.com/ptt/pttweb/pttbbs"
)

type Key interface {
Expand Down
6 changes: 3 additions & 3 deletions src/pttweb/cached_ops.go → cached_ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"fmt"

"pttbbs"
"pttweb/article"
"pttweb/cache"
"github.com/ptt/pttweb/article"
"github.com/ptt/pttweb/cache"
"github.com/ptt/pttweb/pttbbs"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/pttweb/pttweb.go → pttweb.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"text/template"
"time"

"pttbbs"
"pttweb/cache"
"github.com/ptt/pttweb/cache"
"github.com/ptt/pttweb/pttbbs"

"github.com/gorilla/mux"
)
Expand Down
4 changes: 2 additions & 2 deletions src/pttweb/struct.go → struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"bytes"
"encoding/gob"

"pttbbs"
"pttweb/cache"
"github.com/ptt/pttweb/cache"
"github.com/ptt/pttweb/pttbbs"
)

// Useful when calling |NewFromBytes|
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion src/pttweb/tmpl_funcs.go → tmpl_funcs.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package main

import (
"pttbbs"
"strconv"

"github.com/ptt/pttweb/pttbbs"
)

func colored_counter(num int) string {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8ceb99c

Please sign in to comment.