chore: fix some function names in comment

Signed-off-by: threehonor <pengqi@email.cn>
This commit is contained in:
threehonor 2025-03-26 11:03:43 +08:00
parent b833bc9963
commit d1b1c23e4e
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ func CalculateContentLength(contentLength, bodyLength int64) int64 {
return bodyLength return bodyLength
} }
// headersToString converts http headers to string // HeadersToString converts http headers to string
func HeadersToString(headers http.Header) string { func HeadersToString(headers http.Header) string {
builder := &strings.Builder{} builder := &strings.Builder{}

View File

@ -317,7 +317,7 @@ func (template *Template) MarshalYAML() ([]byte, error) {
return out, multierr.Append(marshalErr, errValidate) return out, multierr.Append(marshalErr, errValidate)
} }
// MarshalYAML forces recursive struct validation after unmarshal operation // UnmarshalYAML forces recursive struct validation after unmarshal operation
func (template *Template) UnmarshalYAML(unmarshal func(interface{}) error) error { func (template *Template) UnmarshalYAML(unmarshal func(interface{}) error) error {
type Alias Template type Alias Template
alias := &Alias{} alias := &Alias{}
@ -475,7 +475,7 @@ func (template *Template) GetFileImports() []string {
return template.ImportedFiles return template.ImportedFiles
} }
// addProtocolsToQueue adds protocol requests to the queue and preserves order of the protocols and requests // addRequestsToQueue adds protocol requests to the queue and preserves order of the protocols and requests
func (template *Template) addRequestsToQueue(keys ...string) { func (template *Template) addRequestsToQueue(keys ...string) {
for _, key := range keys { for _, key := range keys {
switch key { switch key {