komuw / ong

ong, is a Go http toolkit.
MIT License
16 stars 4 forks source link

Add sync package #387

Closed komuw closed 1 year ago

komuw commented 1 year ago
import "github.com/komuw/ong/sync"

wg, ctx := sync.New(context.Background(), 2)
_ = ctx

err := wg.Go(
    func() error {
        return nil
    },
   )

_ = err
codecov-commenter commented 1 year ago

Codecov Report

Attention: 38 lines in your changes are missing coverage. Please review.

Comparison is base (cccd396) 73.77% compared to head (71a9e56) 73.70%. Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #387 +/- ## ========================================== - Coverage 73.77% 73.70% -0.08% ========================================== Files 48 49 +1 Lines 5651 5753 +102 ========================================== + Hits 4169 4240 +71 - Misses 1194 1220 +26 - Partials 288 293 +5 ``` | [Files](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu) | Coverage Δ | | |---|---|---| | [middleware/client\_ip.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-bWlkZGxld2FyZS9jbGllbnRfaXAuZ28=) | `100.00% <100.00%> (ø)` | | | [middleware/middleware.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-bWlkZGxld2FyZS9taWRkbGV3YXJlLmdv) | `100.00% <100.00%> (ø)` | | | [middleware/session.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-bWlkZGxld2FyZS9zZXNzaW9uLmdv) | `65.00% <100.00%> (+0.59%)` | :arrow_up: | | [sess/sess.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-c2Vzcy9zZXNzLmdv) | `78.87% <100.00%> (+0.61%)` | :arrow_up: | | [internal/clientip/client\_ip.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-aW50ZXJuYWwvY2xpZW50aXAvY2xpZW50X2lwLmdv) | `72.48% <0.00%> (-0.64%)` | :arrow_down: | | [config/config.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-Y29uZmlnL2NvbmZpZy5nbw==) | `64.74% <68.42%> (+0.16%)` | :arrow_up: | | [middleware/cors.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-bWlkZGxld2FyZS9jb3JzLmdv) | `92.30% <40.00%> (-2.70%)` | :arrow_down: | | [sync/sync.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-c3luYy9zeW5jLmdv) | `88.40% <88.40%> (ø)` | | | [cookie/cookie.go](https://app.codecov.io/gh/komuw/ong/pull/387?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu#diff-Y29va2llL2Nvb2tpZS5nbw==) | `73.77% <60.97%> (-3.95%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/komuw/ong/pull/387/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Komu+Wairagu)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.