Skip to content

Commit

Permalink
更新readme
Browse files Browse the repository at this point in the history
  • Loading branch information
keepchen committed Dec 29, 2023
1 parent cecc20d commit 47a7766
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ var (

sail.WakeupHttp("go-sail", conf, apiOption).Launch(registerRoutes, before, after)
```
当你看到终端如下图所示内容就表示服务启动成功了:
当你看到终端如下图所示内容就表示服务启动成功了:

<img src="./launch.png" alt="launch.png" title="launch.png" width="600" />

## 文档
[文档传送门](https://blog.keepchen.com/a/go-sail.html?from=github)

## 特性
- 获取组件
> go-sail启动时,会根据配置文件启动相应的应用组件,可使用`sail`关键字统一获取
Expand Down Expand Up @@ -153,5 +157,5 @@ func GetUserInfo(c *gin.Context) {
## 使用案例
<img src="static/usecases/pikaster-metaland.png" alt="Pikaster" width="300" />
<img src="static/usecases/wingoal-metaland.png" alt="WinGoal" width="300" />
<img src="static/usecases/miniprogram-hpp.png" alt="生活好评助手-小程序" width="100" />
<img src="static/usecases/miniprogram-hpp.png" alt="生活好评助手-小程序" width="180" />

10 changes: 7 additions & 3 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ var (

sail.WakeupHttp("go-sail", conf, apiOption).Launch(registerRoutes, before, after)
```
Console screenshot after launched like this:
<img src="./launch.png" alt="launch.png" title="launch.png" width="600" />
Console screenshot after launched like this:

<img src="./launch.png" alt="launch.png" title="launch.png" width="600" />

## Documentation
[Docs](https://blog.keepchen.com/a/go-sail.html?from=github)

## Features
- Get components
Expand Down Expand Up @@ -153,4 +157,4 @@ func GetUserInfo(c *gin.Context) {
## Use cases
<img src="static/usecases/pikaster-metaland.png" alt="Pikaster" width="300" />
<img src="static/usecases/wingoal-metaland.png" alt="WinGoal" width="300" />
<img src="static/usecases/miniprogram-hpp.png" alt="生活好评助手-小程序" width="150" />
<img src="static/usecases/miniprogram-hpp.png" alt="生活好评助手-小程序" width="180" />
2 changes: 1 addition & 1 deletion schedule/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func (j *TaskJob) RunAt(crontabExpr string) (cancel func()) {

jobID, jobErr := cronJob.AddFunc(crontabExpr, wrappedTaskFunc)
if jobErr != nil {
fmt.Printf("[GO-SAIL] <Schedule> add job failed: %v\n", jobErr.Error())
fmt.Printf("[GO-SAIL] <Schedule> add job {%s} failed: %v\n", j.name, jobErr.Error())
}

cancel = func() {
Expand Down

0 comments on commit 47a7766

Please sign in to comment.