Skip to content
Snippets Groups Projects
Commit e4bbb601 authored by vito.he's avatar vito.he
Browse files

Mod:modify for code review

parent 4ea5c773
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ import (
"github.com/apache/dubbo-go/common/constant"
)
// ServiceDefinition is a interface of service's definition
// ServiceDefiner is a interface of service's definition
type ServiceDefiner interface {
ToBytes() ([]byte, error)
}
......@@ -42,11 +42,11 @@ type ServiceDefinition struct {
Types []TypeDefinition
}
func (def ServiceDefinition) ToBytes() ([]byte, error) {
func (def *ServiceDefinition) ToBytes() ([]byte, error) {
return json.Marshal(def)
}
func (def ServiceDefinition) String() string {
func (def *ServiceDefinition) String() string {
var methodStr strings.Builder
for _, m := range def.Methods {
var paramType strings.Builder
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment