mgo package changed to 'gopkg.in/mgo.v2/bson'

This commit is contained in:
life
2014-09-02 15:45:44 +08:00
parent 1d8be4c012
commit 7cbd38e8bf
38 changed files with 39 additions and 40 deletions

View File

@ -4,7 +4,7 @@ import (
"github.com/revel/revel"
// "encoding/json"
"github.com/leanote/leanote/app/info"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
// . "github.com/leanote/leanote/app/lea"
// "io/ioutil"
)

View File

@ -2,7 +2,7 @@ package controllers
import (
"github.com/revel/revel"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"encoding/json"
"github.com/leanote/leanote/app/info"
// "io/ioutil"

View File

@ -3,7 +3,7 @@ package controllers
import (
"github.com/revel/revel"
// "encoding/json"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
// . "leanote/app/lea"
"github.com/leanote/leanote/app/info"
// "github.com/leanote/leanote/app/types"

View File

@ -3,7 +3,7 @@ package controllers
import (
"github.com/revel/revel"
// "encoding/json"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
. "github.com/leanote/leanote/app/lea"
"github.com/leanote/leanote/app/lea/html2image"
"github.com/leanote/leanote/app/info"

View File

@ -4,7 +4,7 @@ import (
"github.com/revel/revel"
// "encoding/json"
"github.com/leanote/leanote/app/info"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
// . "github.com/leanote/leanote/app/lea"
// "io/ioutil"
)

View File

@ -3,7 +3,7 @@ package controllers
import (
"github.com/revel/revel"
// "encoding/json"
// "labix.org/v2/mgo/bson"
// "gopkg.in/mgo.v2/bson"
// . "github.com/leanote/leanote/app/lea"
"github.com/leanote/leanote/app/info"
// "github.com/leanote/leanote/app/types"

View File

@ -3,7 +3,7 @@ package controllers
import (
"github.com/revel/revel"
// "encoding/json"
// "labix.org/v2/mgo/bson"
// "gopkg.in/mgo.v2/bson"
. "github.com/leanote/leanote/app/lea"
"github.com/leanote/leanote/app/info"
// "github.com/leanote/leanote/app/types"

View File

@ -2,8 +2,8 @@ package db
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"github.com/revel/revel"
)

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
)
// 只为blog, 不为note

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
)
// 建议

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
)
// 这里主要是为了统计每个tag的note数目

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -1,7 +1,7 @@
package info
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -8,7 +8,7 @@ import (
"encoding/base64"
"encoding/hex"
"io"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
math_rand "math/rand"
)

View File

@ -4,7 +4,7 @@ import (
"github.com/leanote/leanote/app/info"
// . "github.com/leanote/leanote/app/lea"
"github.com/leanote/leanote/app/db"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -1,7 +1,7 @@
package service
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
// "github.com/leanote/leanote/app/db"
"github.com/leanote/leanote/app/info"
"github.com/revel/revel"

View File

@ -4,7 +4,7 @@ import (
"github.com/leanote/leanote/app/info"
"github.com/leanote/leanote/app/db"
// . "github.com/leanote/leanote/app/lea"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
// "time"
// "sort"
)

View File

@ -5,7 +5,7 @@ import (
"github.com/revel/revel"
"github.com/leanote/leanote/app/info"
"github.com/leanote/leanote/app/db"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
"os"
)

View File

@ -4,7 +4,7 @@ import (
"github.com/leanote/leanote/app/info"
"github.com/leanote/leanote/app/db"
// . "github.com/leanote/leanote/app/lea"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
// "time"
)

View File

@ -4,7 +4,7 @@ import (
"github.com/leanote/leanote/app/info"
"github.com/leanote/leanote/app/db"
. "github.com/leanote/leanote/app/lea"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
)

View File

@ -2,7 +2,7 @@ package service
import (
// "fmt"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"github.com/leanote/leanote/app/db"
"github.com/leanote/leanote/app/info"
// . "github.com/leanote/leanote/app/lea"

View File

@ -1,7 +1,7 @@
package service
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"github.com/leanote/leanote/app/db"
"github.com/leanote/leanote/app/info"
. "github.com/leanote/leanote/app/lea"

View File

@ -4,7 +4,7 @@ import (
"github.com/leanote/leanote/app/info"
"github.com/leanote/leanote/app/db"
// . "github.com/leanote/leanote/app/lea"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
"sort"
)

View File

@ -4,7 +4,7 @@ import (
"github.com/leanote/leanote/app/info"
"github.com/leanote/leanote/app/db"
// . "github.com/leanote/leanote/app/lea"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
// "time"
// "sort"
)

View File

@ -4,7 +4,7 @@ import (
"github.com/leanote/leanote/app/info"
"github.com/leanote/leanote/app/db"
. "github.com/leanote/leanote/app/lea"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
// "time"
)

View File

@ -1,7 +1,7 @@
package service
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"github.com/leanote/leanote/app/db"
"github.com/leanote/leanote/app/info"
. "github.com/leanote/leanote/app/lea"

View File

@ -1,7 +1,7 @@
package service
import (
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"github.com/leanote/leanote/app/db"
"github.com/leanote/leanote/app/info"
)

View File

@ -4,7 +4,7 @@ import (
"github.com/leanote/leanote/app/info"
"github.com/leanote/leanote/app/db"
. "github.com/leanote/leanote/app/lea"
"labix.org/v2/mgo/bson"
"gopkg.in/mgo.v2/bson"
"time"
"strings"
"fmt"

View File

@ -11,8 +11,8 @@ import (
"github.com/leanote/leanote/app/lea/html2image"
"time"
"fmt"
"labix.org/v2/mgo/bson"
// "labix.org/v2/mgo"
"gopkg.in/mgo.v2/bson"
// "gopkg.in/mgo.v2"
// "encoding/json"
// "strings"
)

View File

@ -27,7 +27,7 @@ function log(o) {
<div class="pull-left">
<h1>
<a href="/index">
<img src="/images/logo.png" id="" style="height: 40px" title="leanote, Your own cloud note!"/>
<img src="/images/logo/leanote.png" id="" style="height: 50px" title="leanote, Your own cloud note!"/>
</a>
</h1>
</div>

View File

@ -45,9 +45,8 @@ function log(o) {
</div>
-->
<div id="logo" class="pull-left">
<span>lea</span>note
<!-- <img style="height: 45px;" src="/images/logo.png" title="leanote, 不一样的笔记" alt="leanote">
-->
<!--<span>lea</span>note -->
<img style="height: 45px;" src="/images/logo/leanote_green.png" title="leanote, 不一样的笔记" alt="leanote">
</div>
<div id="switcher" class="pull-left">
<i class="fa fa-align-justify" id="leftSwitcher" title="{{msg . "leftHidden"}}"></i>

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB