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" "github.com/revel/revel"
// "encoding/json" // "encoding/json"
"github.com/leanote/leanote/app/info" "github.com/leanote/leanote/app/info"
"labix.org/v2/mgo/bson" "gopkg.in/mgo.v2/bson"
// . "github.com/leanote/leanote/app/lea" // . "github.com/leanote/leanote/app/lea"
// "io/ioutil" // "io/ioutil"
) )

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,7 +27,7 @@ function log(o) {
<div class="pull-left"> <div class="pull-left">
<h1> <h1>
<a href="/index"> <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> </a>
</h1> </h1>
</div> </div>

View File

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