gop icon indicating copy to clipboard operation
gop copied to clipboard

[WIP] x/format: GopClassSource

Open visualfc opened this issue 1 year ago • 1 comments

type ClassConfig struct {
	PkgPath   string            // Go+ class project pkgpath, empty if normal .gox class. (optional)
	ClassName string            // project or class name.
	Project   bool              // true means ClassName is project.
	Comments  bool              // true means parse comments.
	Gopt      map[string]string // Gopt_ function name mapping. (optional)
	Overload  map[string]string // Overload function name mapping. (optional)
}
// GopClassSource format Go+ source to Go+ class source.
func GopClassSource(src []byte, cfg *ClassConfig, filename ...string) (ret []byte, err error) {

visualfc avatar Nov 21 '24 12:11 visualfc

Codecov Report

Attention: Patch coverage is 96.89441% with 5 lines in your changes missing coverage. Please review.

Project coverage is 93.43%. Comparing base (17784d7) to head (5147ee0).

Files with missing lines Patch % Lines
x/format/gopstyle.go 96.21% 4 Missing and 1 partial :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2020      +/-   ##
==========================================
+ Coverage   93.34%   93.43%   +0.08%     
==========================================
  Files          42       42              
  Lines       11734    11892     +158     
==========================================
+ Hits        10953    11111     +158     
+ Misses        624      623       -1     
- Partials      157      158       +1     

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


🚨 Try these New Features:

codecov[bot] avatar Nov 21 '24 12:11 codecov[bot]