pingcap / failpoint

An implementation of failpoints for Golang.
Apache License 2.0
817 stars 63 forks source link

code: make the generated code using 'idiomatic go way' #25

Closed nange closed 5 years ago

nange commented 5 years ago

What problem does this PR solve?

NO

What is changed and how it works?

The generated code is more like 'idiomatic go way' now.

Check List

Tests

Side effects NO

Related changes NO

CLAassistant commented 5 years ago

CLA assistant check
All committers have signed the CLA.

codecov[bot] commented 5 years ago

Codecov Report

Merging #25 into master will not change coverage. The diff coverage is 100%.

@@             Coverage Diff             @@
##             master        #25   +/-   ##
===========================================
  Coverage   86.9169%   86.9169%           
===========================================
  Files             7          7           
  Lines           879        879           
===========================================
  Hits            764        764           
  Misses           73         73           
  Partials         42         42