Skip to content

Commit

Permalink
chore: add some comments for users
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina-Sakai committed Jan 15, 2025
1 parent bfa6f2b commit 4f0a377
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/generic/thrift/parse_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func WithGoTagDisabled(disable bool) ParseOption {
}}
}

// WithIDLServiceName specifies the target IDL service to be parsed.
// NOTE: with this option, the specified service is prioritized and parse mode will be ignored.
func WithIDLServiceName(serviceName string) ParseOption {
return ParseOption{F: func(opt *parseOptions) {
opt.serviceName = serviceName
Expand Down

0 comments on commit 4f0a377

Please sign in to comment.