From 4f0a377f3b49c0f953ee682b31e0369fefefe426 Mon Sep 17 00:00:00 2001 From: Marina-Sakai Date: Wed, 15 Jan 2025 15:20:49 +0800 Subject: [PATCH] chore: add some comments for users --- pkg/generic/thrift/parse_option.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/generic/thrift/parse_option.go b/pkg/generic/thrift/parse_option.go index 0bd95220aa..9fffd321a2 100644 --- a/pkg/generic/thrift/parse_option.go +++ b/pkg/generic/thrift/parse_option.go @@ -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