Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iox: 添加 iox.JSONReader #235

Merged
merged 1 commit into from
Dec 29, 2023
Merged

iox: 添加 iox.JSONReader #235

merged 1 commit into from
Dec 29, 2023

Conversation

flycash
Copy link
Contributor

@flycash flycash commented Dec 29, 2023

在很多时候,我们需要将一个结构体在经过序列化之后,作为一个 reader 传入到别的方法里面。

为了避免写重复代码,我提供了一个封装。

image

毕竟在没有这个封装的情况下,还是过于垃圾了。

Copy link

codecov bot commented Dec 29, 2023

Codecov Report

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

Comparison is base (985e68e) 95.81% compared to head (49f6e15) 95.77%.

Files Patch % Lines
iox/json_reader.go 80.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #235      +/-   ##
==========================================
- Coverage   95.81%   95.77%   -0.05%     
==========================================
  Files          61       62       +1     
  Lines        3250     3265      +15     
==========================================
+ Hits         3114     3127      +13     
  Misses        106      106              
- Partials       30       32       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@flycash flycash merged commit 14dba09 into ecodeclub:dev Dec 29, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant