diff --git a/README.md b/README.md index 0dfbd5e..59cef8b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Lessgo Web Framework [![GoDoc](https://godoc.org/github.com/lessgo/lessgo?status.svg)](https://godoc.org/github.com/lessgo/lessgo) [![GitHub release](https://img.shields.io/github/release/lessgo/lessgo.svg)](https://github.com/lessgo/lessgo/releases) +# Lessgo Web Framework [![GoDoc](https://godoc.org/github.com/henrylee2cn/lessgo?status.svg)](https://godoc.org/github.com/henrylee2cn/lessgo) [![GitHub release](https://img.shields.io/github/release/henrylee2cn/lessgo.svg)](https://github.com/henrylee2cn/lessgo/releases) -![Lessgo Favicon](https://github.com/lessgo/doc/raw/master/img/favicon.png) +![Lessgo Favicon](https://github.com/henrylee2cn/lessgo_doc/raw/master/img/favicon.png) ## 概述 Lessgo是一款Go语言开发的简单、稳定、高效、灵活的 web开发框架。它的项目组织形式经过精心设计,实现前后端分离、系统与业务分离,完美兼容MVC与MVVC等多种开发模式,非常利于企业级应用与API接口的开发。当然,最值得关注的是它突破性支持运行时路由重建,开发者可在Admin后台轻松配置路由,并实现启用/禁用模块或操作、添加/移除中间件等!同时,它以ApiHandler与ApiMiddleware为项目基本组成单元,可实现编译期或运行时的自由搭配组合,也令开发变得更加灵活富有趣味性。 @@ -32,23 +32,23 @@ Lessgo是一款Go语言开发的简单、稳定、高效、灵活的 web开发 - 支持热升级 - 另外灵活的扩展包中还包含HOTP、TOTP、UUID以及各种条码生成工具等常用工具包 -![Lessgo Server](https://github.com/lessgo/doc/raw/master/img/server.jpg) -![Lessgo Server](https://github.com/lessgo/doc/raw/master/img/admin.png) +![Lessgo Server](https://github.com/henrylee2cn/lessgo_doc/raw/master/img/server.jpg) +![Lessgo Server](https://github.com/henrylee2cn/lessgo_doc/raw/master/img/admin.png) ## 框架下载 ```sh -go get -u github.com/lessgo/lessgo -go get -u github.com/lessgo/less -go get -u github.com/lessgo/lessgoext/... +go get -u github.com/henrylee2cn/lessgo +go get -u github.com/henrylee2cn/less +go get -u github.com/henrylee2cn/lessgoext/... ``` ## 框架构成 -- 核心框架:[lessgo](https://github.com/lessgo/lessgo) -- 框架部署工具:[less](https://github.com/lessgo/less) -- 框架扩展:[lessgoext](https://github.com/lessgo/lessgoext) -- 项目Demo:[demo](https://github.com/lessgo/demo) -- 框架文档 [document](https://github.com/lessgo/doc) +- 核心框架:[lessgo](https://github.com/henrylee2cn/lessgo) +- 框架部署工具:[less](https://github.com/henrylee2cn/less) +- 框架扩展:[lessgoext](https://github.com/henrylee2cn/lessgoext) +- 项目Demo:[demo](https://github.com/henrylee2cn/lessgo_demo) +- 框架文档 [document](https://github.com/henrylee2cn/lessgo_doc) ## 代码示例 @@ -56,14 +56,14 @@ go get -u github.com/lessgo/lessgoext/... ```go import ( - "github.com/lessgo/lessgo" - "github.com/lessgo/lessgoext/swagger" + "github.com/henrylee2cn/lessgo" + "github.com/henrylee2cn/lessgoext/swagger" - _ "github.com/lessgo/lessgoext/dbservice/xorm" - // _ "github.com/lessgo/lessgoext/dbservice/gorm" + _ "github.com/henrylee2cn/lessgoext/dbservice/xorm" + // _ "github.com/henrylee2cn/lessgoext/dbservice/gorm" - _ "github.com/lessgo/demo/middleware" - _ "github.com/lessgo/demo/router" + _ "github.com/henrylee2cn/lessgo_demo/middleware" + _ "github.com/henrylee2cn/lessgo_demo/router" ) func main() { @@ -80,8 +80,8 @@ func main() { ``` import ( - . "github.com/lessgo/lessgo" - "github.com/lessgo/demo/sysmodel/admin" + . "github.com/henrylee2cn/lessgo" + "github.com/henrylee2cn/lessgo_demo/sysmodel/admin" ) var Index = ApiHandler{ @@ -160,10 +160,10 @@ var ShowHeader = lessgo.ApiMiddleware{ package router import ( - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" - "github.com/lessgo/demo/bizhandler/home" - "github.com/lessgo/demo/middleware" + "github.com/henrylee2cn/lessgo_demo/bizhandler/home" + "github.com/henrylee2cn/lessgo_demo/middleware" ) func init() { @@ -177,13 +177,13 @@ func init() { ``` ## 系统文档 -- [综述](https://github.com/lessgo/doc/blob/master/Introduction.md) -- [安装部署](https://github.com/lessgo/doc/blob/master/Install.md) -- [开始lessgo之旅](https://github.com/lessgo/doc/blob/master/Develop01.md) -- [更多(文档目录)](https://github.com/lessgo/doc/blob/master/README.md) +- [综述](https://github.com/henrylee2cn/lessgo_doc/blob/master/Introduction.md) +- [安装部署](https://github.com/henrylee2cn/lessgo_doc/blob/master/Install.md) +- [开始lessgo之旅](https://github.com/henrylee2cn/lessgo_doc/blob/master/Develop01.md) +- [更多(文档目录)](https://github.com/henrylee2cn/lessgo_doc/blob/master/README.md) ## 项目架构 -![Lessgo Web Framework](https://github.com/lessgo/doc/raw/master/img/LessgoWebFramework.jpg) +![Lessgo Web Framework](https://github.com/henrylee2cn/lessgo_doc/raw/master/img/LessgoWebFramework.jpg) ## 项目目录结构 @@ -245,4 +245,4 @@ func init() { [LeSou](https://github.com/LeSou)| ## 开源协议 -Lessgo 项目采用商业应用友好的 [MIT](https://github.com/lessgo/lessgo/raw/master/LICENSE) 协议发布。 +Lessgo 项目采用商业应用友好的 [MIT](https://github.com/henrylee2cn/lessgo/raw/master/LICENSE) 协议发布。 diff --git a/barcode/codabar/encoder.go b/barcode/codabar/encoder.go index db99a1c..a16bc74 100644 --- a/barcode/codabar/encoder.go +++ b/barcode/codabar/encoder.go @@ -5,8 +5,8 @@ import ( "fmt" "regexp" - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) var encodingTable = map[rune][]bool{ diff --git a/barcode/code128/encode.go b/barcode/code128/encode.go index af77dbf..bc0b59b 100644 --- a/barcode/code128/encode.go +++ b/barcode/code128/encode.go @@ -6,8 +6,8 @@ import ( "strings" "unicode/utf8" - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) func strToRunes(str string) []rune { diff --git a/barcode/code39/encoder.go b/barcode/code39/encoder.go index 9a4a6b6..99ac301 100644 --- a/barcode/code39/encoder.go +++ b/barcode/code39/encoder.go @@ -6,8 +6,8 @@ import ( "strconv" "strings" - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) type encodeInfo struct { diff --git a/barcode/datamatrix/codelayout.go b/barcode/datamatrix/codelayout.go index 6724295..c7cdb35 100644 --- a/barcode/datamatrix/codelayout.go +++ b/barcode/datamatrix/codelayout.go @@ -1,7 +1,7 @@ package datamatrix import ( - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) type setValFunc func(byte) diff --git a/barcode/datamatrix/datamatrixcode.go b/barcode/datamatrix/datamatrixcode.go index ea788d2..95a08b2 100644 --- a/barcode/datamatrix/datamatrixcode.go +++ b/barcode/datamatrix/datamatrixcode.go @@ -1,8 +1,8 @@ package datamatrix import ( - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/utils" "image" "image/color" ) diff --git a/barcode/datamatrix/encoder.go b/barcode/datamatrix/encoder.go index bc45334..87c6efe 100644 --- a/barcode/datamatrix/encoder.go +++ b/barcode/datamatrix/encoder.go @@ -4,7 +4,7 @@ package datamatrix import ( "errors" - "github.com/lessgo/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode" ) // Encode returns a Datamatrix barcode for the given content diff --git a/barcode/datamatrix/errorcorrection.go b/barcode/datamatrix/errorcorrection.go index 76adb7a..4b0034a 100644 --- a/barcode/datamatrix/errorcorrection.go +++ b/barcode/datamatrix/errorcorrection.go @@ -1,7 +1,7 @@ package datamatrix import ( - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) type errorCorrection struct { diff --git a/barcode/ean/encoder.go b/barcode/ean/encoder.go index 00d7695..6bbeeb0 100644 --- a/barcode/ean/encoder.go +++ b/barcode/ean/encoder.go @@ -4,8 +4,8 @@ package ean import ( "errors" - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) type encodedNumber struct { diff --git a/barcode/qr/alphanumeric.go b/barcode/qr/alphanumeric.go index 5f6f6a1..682c4cf 100644 --- a/barcode/qr/alphanumeric.go +++ b/barcode/qr/alphanumeric.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) const charSet string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:" diff --git a/barcode/qr/automatic.go b/barcode/qr/automatic.go index a0b5290..200b59a 100644 --- a/barcode/qr/automatic.go +++ b/barcode/qr/automatic.go @@ -3,7 +3,7 @@ package qr import ( "fmt" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) func encodeAuto(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) { diff --git a/barcode/qr/encoder.go b/barcode/qr/encoder.go index da646de..97f1309 100644 --- a/barcode/qr/encoder.go +++ b/barcode/qr/encoder.go @@ -4,8 +4,8 @@ package qr import ( "image" - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) type encodeFn func(content string, eccLevel ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) diff --git a/barcode/qr/encoder_test.go b/barcode/qr/encoder_test.go index 6001771..8079d1a 100644 --- a/barcode/qr/encoder_test.go +++ b/barcode/qr/encoder_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/lessgo/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode" ) type test struct { diff --git a/barcode/qr/errorcorrection.go b/barcode/qr/errorcorrection.go index 990afab..94a9db6 100644 --- a/barcode/qr/errorcorrection.go +++ b/barcode/qr/errorcorrection.go @@ -1,7 +1,7 @@ package qr import ( - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) type errorCorrection struct { diff --git a/barcode/qr/helper.go b/barcode/qr/helper.go index 5518991..8074ccb 100644 --- a/barcode/qr/helper.go +++ b/barcode/qr/helper.go @@ -6,7 +6,7 @@ import ( "image/jpeg" "image/png" - "github.com/lessgo/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode" ) // 常见二维码边长 diff --git a/barcode/qr/numeric.go b/barcode/qr/numeric.go index aeee99f..b1c4a70 100644 --- a/barcode/qr/numeric.go +++ b/barcode/qr/numeric.go @@ -5,7 +5,7 @@ import ( "fmt" "strconv" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) func encodeNumeric(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) { diff --git a/barcode/qr/qrcode.go b/barcode/qr/qrcode.go index ce089e8..4532ea5 100644 --- a/barcode/qr/qrcode.go +++ b/barcode/qr/qrcode.go @@ -5,8 +5,8 @@ import ( "image/color" "math" - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) type qrcode struct { diff --git a/barcode/qr/unicode.go b/barcode/qr/unicode.go index a9fdca2..c952de9 100644 --- a/barcode/qr/unicode.go +++ b/barcode/qr/unicode.go @@ -3,7 +3,7 @@ package qr import ( "errors" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) func encodeUnicode(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) { diff --git a/barcode/twooffive/encoder.go b/barcode/twooffive/encoder.go index e32a88f..12d1d6e 100644 --- a/barcode/twooffive/encoder.go +++ b/barcode/twooffive/encoder.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/utils" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/utils" ) const patternWidth = 5 diff --git a/barcode/utils/base1dcode.go b/barcode/utils/base1dcode.go index 74447ba..5de07e1 100644 --- a/barcode/utils/base1dcode.go +++ b/barcode/utils/base1dcode.go @@ -5,7 +5,7 @@ import ( "image" "image/color" - "github.com/lessgo/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode" ) type base1DCode struct { diff --git a/cache/_memcache/memcache.go b/cache/_memcache/memcache.go index 8b42748..d0f5118 100644 --- a/cache/_memcache/memcache.go +++ b/cache/_memcache/memcache.go @@ -20,8 +20,8 @@ // // Usage: // import( -// _ "github.com/lessgo/lessgo/cache/memcache" -// "github.com/lessgo/lessgo/cache" +// _ "github.com/henrylee2cn/lessgo/cache/memcache" +// "github.com/henrylee2cn/lessgo/cache" // ) // // bm, err := cache.NewCache("memcache", `{"conn":"127.0.0.1:11211"}`) @@ -38,7 +38,7 @@ import ( "time" - "github.com/lessgo/lessgoext/cache" + "github.com/henrylee2cn/lessgoext/cache" ) // Cache Memcache adapter. diff --git a/cache/_memcache/memcache_test.go b/cache/_memcache/memcache_test.go index 0fb7bb3..e64cea9 100644 --- a/cache/_memcache/memcache_test.go +++ b/cache/_memcache/memcache_test.go @@ -21,7 +21,7 @@ import ( "testing" "time" - "github.com/lessgo/lessgoext/cache" + "github.com/henrylee2cn/lessgoext/cache" ) func TestMemcacheCache(t *testing.T) { diff --git a/cache/redis/redis.go b/cache/redis/redis.go index e1f3d38..c3263aa 100644 --- a/cache/redis/redis.go +++ b/cache/redis/redis.go @@ -20,8 +20,8 @@ // // Usage: // import( -// _ "github.com/lessgo/lessgo/cache/redis" -// "github.com/lessgo/lessgo/cache" +// _ "github.com/henrylee2cn/lessgo/cache/redis" +// "github.com/henrylee2cn/lessgo/cache" // ) // // bm, err := cache.NewCache("redis", `{"conn":"127.0.0.1:11211"}`) @@ -37,7 +37,7 @@ import ( "github.com/garyburd/redigo/redis" - "github.com/lessgo/lessgoext/cache" + "github.com/henrylee2cn/lessgoext/cache" ) var ( diff --git a/cache/redis/redis_test.go b/cache/redis/redis_test.go index 2892f61..605cfd9 100644 --- a/cache/redis/redis_test.go +++ b/cache/redis/redis_test.go @@ -20,7 +20,7 @@ import ( "github.com/garyburd/redigo/redis" - "github.com/lessgo/lessgoext/cache" + "github.com/henrylee2cn/lessgoext/cache" ) func TestRedisCache(t *testing.T) { diff --git a/cache/ssdb/ssdb.go b/cache/ssdb/ssdb.go index aab159d..c350466 100644 --- a/cache/ssdb/ssdb.go +++ b/cache/ssdb/ssdb.go @@ -9,7 +9,7 @@ import ( "github.com/ssdb/gossdb/ssdb" - "github.com/lessgo/lessgoext/cache" + "github.com/henrylee2cn/lessgoext/cache" ) // Cache SSDB adapter diff --git a/cache/ssdb/ssdb_test.go b/cache/ssdb/ssdb_test.go index d32d533..b8213bd 100644 --- a/cache/ssdb/ssdb_test.go +++ b/cache/ssdb/ssdb_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/lessgo/lessgoext/cache" + "github.com/henrylee2cn/lessgoext/cache" ) func TestSsdbcacheCache(t *testing.T) { diff --git a/copyfiles/copyfiles.go b/copyfiles/copyfiles.go index 6e148a0..d19222a 100644 --- a/copyfiles/copyfiles.go +++ b/copyfiles/copyfiles.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "github.com/lessgo/lessgo" - "github.com/lessgo/lessgo/utils" + "github.com/henrylee2cn/lessgo" + "github.com/henrylee2cn/lessgo/utils" ) type FileInfo struct { diff --git a/dbservice/directsql/sqlengine.go b/dbservice/directsql/sqlengine.go index bd37160..e6b116d 100644 --- a/dbservice/directsql/sqlengine.go +++ b/dbservice/directsql/sqlengine.go @@ -8,7 +8,7 @@ import ( "errors" "fmt" "github.com/go-xorm/core" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) //根据sqlid获取 *Sqlentity diff --git a/dbservice/directsql/sqlhandle.go b/dbservice/directsql/sqlhandle.go index 649259b..cec8efe 100644 --- a/dbservice/directsql/sqlhandle.go +++ b/dbservice/directsql/sqlhandle.go @@ -4,7 +4,7 @@ package directsql import ( - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) //DirectSQL handler 定义 diff --git a/dbservice/directsql/sqlmanage.go b/dbservice/directsql/sqlmanage.go index 1d044ea..1b7027f 100644 --- a/dbservice/directsql/sqlmanage.go +++ b/dbservice/directsql/sqlmanage.go @@ -8,9 +8,9 @@ import ( "encoding/xml" "github.com/fsnotify/fsnotify" "github.com/go-xorm/core" - "github.com/lessgo/lessgo" - confpkg "github.com/lessgo/lessgo/config" - lessgoxorm "github.com/lessgo/lessgoext/dbservice/xorm" + "github.com/henrylee2cn/lessgo" + confpkg "github.com/henrylee2cn/lessgo/config" + lessgoxorm "github.com/henrylee2cn/lessgoext/dbservice/xorm" "io/ioutil" "os" "path/filepath" diff --git a/dbservice/directsql/sqlrouter.go b/dbservice/directsql/sqlrouter.go index afc2c78..da83d9d 100644 --- a/dbservice/directsql/sqlrouter.go +++ b/dbservice/directsql/sqlrouter.go @@ -5,7 +5,7 @@ package directsql /* import ( - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" "lessdo/middleware" ) diff --git a/dbservice/directsql/sqlservice.go b/dbservice/directsql/sqlservice.go index e77cf37..bd08786 100644 --- a/dbservice/directsql/sqlservice.go +++ b/dbservice/directsql/sqlservice.go @@ -8,7 +8,7 @@ import ( "database/sql" "errors" "github.com/go-xorm/core" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) var notFoundError = func(sqlid string) error { diff --git a/dbservice/directsql/sqlwatcher.go b/dbservice/directsql/sqlwatcher.go index ab03ed1..12d2118 100644 --- a/dbservice/directsql/sqlwatcher.go +++ b/dbservice/directsql/sqlwatcher.go @@ -8,7 +8,7 @@ package directsql import ( "github.com/fsnotify/fsnotify" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" "strings" ) diff --git a/dbservice/gorm/config.go b/dbservice/gorm/config.go index 43e2b5c..c5f52a9 100644 --- a/dbservice/gorm/config.go +++ b/dbservice/gorm/config.go @@ -5,8 +5,8 @@ import ( "path/filepath" "strings" - "github.com/lessgo/lessgo" - confpkg "github.com/lessgo/lessgo/config" + "github.com/henrylee2cn/lessgo" + confpkg "github.com/henrylee2cn/lessgo/config" ) type ( diff --git a/dbservice/gorm/initialize.go b/dbservice/gorm/initialize.go index 61516f9..d05f513 100644 --- a/dbservice/gorm/initialize.go +++ b/dbservice/gorm/initialize.go @@ -7,8 +7,8 @@ import ( "github.com/jinzhu/gorm" - "github.com/lessgo/lessgo" - "github.com/lessgo/lessgo/utils" + "github.com/henrylee2cn/lessgo" + "github.com/henrylee2cn/lessgo/utils" ) // 注册数据库服务 diff --git a/dbservice/gorm/logger.go b/dbservice/gorm/logger.go index 6f86635..9ae409e 100644 --- a/dbservice/gorm/logger.go +++ b/dbservice/gorm/logger.go @@ -3,8 +3,8 @@ package gorm import ( "fmt" - log "github.com/lessgo/lessgo/logs" - "github.com/lessgo/lessgo/logs/logs" + log "github.com/henrylee2cn/lessgo/logs" + "github.com/henrylee2cn/lessgo/logs/logs" ) type ILogger struct { diff --git a/dbservice/sqlx/config.go b/dbservice/sqlx/config.go index d253033..36420a5 100644 --- a/dbservice/sqlx/config.go +++ b/dbservice/sqlx/config.go @@ -5,8 +5,8 @@ import ( "path/filepath" "strings" - "github.com/lessgo/lessgo" - confpkg "github.com/lessgo/lessgo/config" + "github.com/henrylee2cn/lessgo" + confpkg "github.com/henrylee2cn/lessgo/config" ) type ( diff --git a/dbservice/sqlx/initialize.go b/dbservice/sqlx/initialize.go index 0bf4efd..e94db08 100644 --- a/dbservice/sqlx/initialize.go +++ b/dbservice/sqlx/initialize.go @@ -9,8 +9,8 @@ import ( "github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx/reflectx" - "github.com/lessgo/lessgo" - "github.com/lessgo/lessgo/utils" + "github.com/henrylee2cn/lessgo" + "github.com/henrylee2cn/lessgo/utils" ) // 注册数据库服务 diff --git a/dbservice/xorm/config.go b/dbservice/xorm/config.go index 48435f5..951451d 100644 --- a/dbservice/xorm/config.go +++ b/dbservice/xorm/config.go @@ -5,8 +5,8 @@ import ( "path/filepath" "strings" - "github.com/lessgo/lessgo" - confpkg "github.com/lessgo/lessgo/config" + "github.com/henrylee2cn/lessgo" + confpkg "github.com/henrylee2cn/lessgo/config" ) type ( diff --git a/dbservice/xorm/initialize.go b/dbservice/xorm/initialize.go index 48e4bca..b19dbc9 100644 --- a/dbservice/xorm/initialize.go +++ b/dbservice/xorm/initialize.go @@ -8,8 +8,8 @@ import ( "github.com/go-xorm/core" "github.com/go-xorm/xorm" - "github.com/lessgo/lessgo" - "github.com/lessgo/lessgo/utils" + "github.com/henrylee2cn/lessgo" + "github.com/henrylee2cn/lessgo/utils" ) // 注册数据库服务 diff --git a/dbservice/xorm/logger.go b/dbservice/xorm/logger.go index 679f2cf..d9b99e2 100644 --- a/dbservice/xorm/logger.go +++ b/dbservice/xorm/logger.go @@ -5,8 +5,8 @@ import ( "github.com/go-xorm/core" - log "github.com/lessgo/lessgo/logs" - "github.com/lessgo/lessgo/logs/logs" + log "github.com/henrylee2cn/lessgo/logs" + "github.com/henrylee2cn/lessgo/logs/logs" ) type ILogger struct { diff --git a/middleware/allow_ip_access.go b/middleware/allow_ip_access.go index 3b0f42d..6664b10 100644 --- a/middleware/allow_ip_access.go +++ b/middleware/allow_ip_access.go @@ -5,7 +5,7 @@ import ( "net/http" "strings" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) var ( diff --git a/middleware/basic_auth.go b/middleware/basic_auth.go index 44845bb..be6d9d8 100644 --- a/middleware/basic_auth.go +++ b/middleware/basic_auth.go @@ -3,7 +3,7 @@ package middleware import ( "encoding/base64" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/middleware/body_limit.go b/middleware/body_limit.go index a2fdfda..18357aa 100644 --- a/middleware/body_limit.go +++ b/middleware/body_limit.go @@ -5,8 +5,8 @@ import ( "io" "sync" - "github.com/lessgo/lessgo" - "github.com/lessgo/lessgoext/bitconv" + "github.com/henrylee2cn/lessgo" + "github.com/henrylee2cn/lessgoext/bitconv" ) type ( diff --git a/middleware/compress.go b/middleware/compress.go index eb901c0..c516153 100644 --- a/middleware/compress.go +++ b/middleware/compress.go @@ -8,7 +8,7 @@ import ( "strings" "sync" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/middleware/cors.go b/middleware/cors.go index 52096f3..4a0d1c9 100644 --- a/middleware/cors.go +++ b/middleware/cors.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/middleware/csrf.go b/middleware/csrf.go index 01d84f6..8a39f0a 100644 --- a/middleware/csrf.go +++ b/middleware/csrf.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/middleware/jwt.go b/middleware/jwt.go index 1a91760..8dbc8cf 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/dgrijalva/jwt-go" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/middleware/method_override.go b/middleware/method_override.go index c815b32..411015a 100644 --- a/middleware/method_override.go +++ b/middleware/method_override.go @@ -1,7 +1,7 @@ package middleware import ( - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/middleware/only_lan_access.go b/middleware/only_lan_access.go index db5bbd8..1ee9b72 100644 --- a/middleware/only_lan_access.go +++ b/middleware/only_lan_access.go @@ -5,7 +5,7 @@ import ( "errors" "net/http" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) var ( diff --git a/middleware/secure.go b/middleware/secure.go index b8ac2d8..1fd76d9 100644 --- a/middleware/secure.go +++ b/middleware/secure.go @@ -3,7 +3,7 @@ package middleware import ( "fmt" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/middleware/slash.go b/middleware/slash.go index f558be5..df9ad2c 100644 --- a/middleware/slash.go +++ b/middleware/slash.go @@ -1,7 +1,7 @@ package middleware import ( - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/middleware/static.go b/middleware/static.go index 48178db..140580f 100644 --- a/middleware/static.go +++ b/middleware/static.go @@ -6,7 +6,7 @@ import ( "path" "strings" - "github.com/lessgo/lessgo" + "github.com/henrylee2cn/lessgo" ) type ( diff --git a/myconfig/myconfig.go b/myconfig/myconfig.go index aceeff7..774824a 100644 --- a/myconfig/myconfig.go +++ b/myconfig/myconfig.go @@ -8,9 +8,9 @@ import ( "reflect" "strings" - "github.com/lessgo/lessgo" - confpkg "github.com/lessgo/lessgo/config" - "github.com/lessgo/lessgo/utils" + "github.com/henrylee2cn/lessgo" + confpkg "github.com/henrylee2cn/lessgo/config" + "github.com/henrylee2cn/lessgo/utils" ) /* 从结构体快速创建自己简单的ini配置。 diff --git a/otp/doc.go b/otp/doc.go index 40bba2e..02e7e25 100644 --- a/otp/doc.go +++ b/otp/doc.go @@ -27,7 +27,7 @@ // Authenticator supports using a QR code as an enrollment method: // // import ( -// "github.com/lessgo/lessgoext/otp/totp" +// "github.com/henrylee2cn/lessgoext/otp/totp" // // "bytes" // "image/png" @@ -57,7 +57,7 @@ // // Validating a TOTP passcode is very easy, just prompt the user for a passcode // and retrieve the associated user's previously stored secret. -// import "github.com/lessgo/lessgoext/otp/totp" +// import "github.com/henrylee2cn/lessgoext/otp/totp" // // passcode := promptForPasscode() // secret := getSecret("alice@example.com") diff --git a/otp/example/main.go b/otp/example/main.go index 22dff46..03953e9 100644 --- a/otp/example/main.go +++ b/otp/example/main.go @@ -1,8 +1,8 @@ package main import ( - "github.com/lessgo/lessgoext/otp" - "github.com/lessgo/lessgoext/otp/totp" + "github.com/henrylee2cn/lessgoext/otp" + "github.com/henrylee2cn/lessgoext/otp/totp" "bufio" "bytes" diff --git a/otp/hotp/hotp.go b/otp/hotp/hotp.go index c538c12..b30049a 100644 --- a/otp/hotp/hotp.go +++ b/otp/hotp/hotp.go @@ -18,7 +18,7 @@ package hotp import ( - "github.com/lessgo/lessgoext/otp" + "github.com/henrylee2cn/lessgoext/otp" "crypto/hmac" "crypto/rand" diff --git a/otp/hotp/hotp_test.go b/otp/hotp/hotp_test.go index b4f9987..0b71f18 100644 --- a/otp/hotp/hotp_test.go +++ b/otp/hotp/hotp_test.go @@ -18,7 +18,7 @@ package hotp import ( - "github.com/lessgo/lessgoext/otp" + "github.com/henrylee2cn/lessgoext/otp" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/otp/otp.go b/otp/otp.go index 587c546..94ba7dc 100644 --- a/otp/otp.go +++ b/otp/otp.go @@ -18,8 +18,8 @@ package otp import ( - "github.com/lessgo/lessgoext/barcode" - "github.com/lessgo/lessgoext/barcode/qr" + "github.com/henrylee2cn/lessgoext/barcode" + "github.com/henrylee2cn/lessgoext/barcode/qr" "crypto/md5" "crypto/sha1" diff --git a/otp/totp/totp.go b/otp/totp/totp.go index 17a8d86..43ae3fd 100644 --- a/otp/totp/totp.go +++ b/otp/totp/totp.go @@ -18,8 +18,8 @@ package totp import ( - "github.com/lessgo/lessgoext/otp" - "github.com/lessgo/lessgoext/otp/hotp" + "github.com/henrylee2cn/lessgoext/otp" + "github.com/henrylee2cn/lessgoext/otp/hotp" "crypto/rand" "encoding/base32" diff --git a/otp/totp/totp_test.go b/otp/totp/totp_test.go index 191615e..47a0f0d 100644 --- a/otp/totp/totp_test.go +++ b/otp/totp/totp_test.go @@ -18,7 +18,7 @@ package totp import ( - "github.com/lessgo/lessgoext/otp" + "github.com/henrylee2cn/lessgoext/otp" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/surfer/example/example.go b/surfer/example/example.go index 9990c71..331f381 100644 --- a/surfer/example/example.go +++ b/surfer/example/example.go @@ -1,7 +1,7 @@ package main import ( - "github.com/lessgo/lessgoext/surfer" + "github.com/henrylee2cn/lessgoext/surfer" "io/ioutil" "log" "time" diff --git a/surfer/param.go b/surfer/param.go index ded47c2..1f8a512 100644 --- a/surfer/param.go +++ b/surfer/param.go @@ -25,7 +25,7 @@ import ( "strings" "time" - "github.com/lessgo/lessgoext/surfer/agent" + "github.com/henrylee2cn/lessgoext/surfer/agent" ) type Param struct { diff --git a/surfer/surf.go b/surfer/surf.go index 3560a45..6eaacc3 100644 --- a/surfer/surf.go +++ b/surfer/surf.go @@ -27,7 +27,7 @@ import ( "strings" "time" - "github.com/lessgo/lessgoext/surfer/agent" + "github.com/henrylee2cn/lessgoext/surfer/agent" ) // Default is the default Download implementation. diff --git a/swagger/swagger.go b/swagger/swagger.go index 218156d..83eaa9b 100644 --- a/swagger/swagger.go +++ b/swagger/swagger.go @@ -10,8 +10,8 @@ import ( "strings" "sync" - "github.com/lessgo/lessgo" - "github.com/lessgo/lessgoext/myconfig" + "github.com/henrylee2cn/lessgo" + "github.com/henrylee2cn/lessgoext/myconfig" ) /*