Source file src/mime/multipart/readmimeheader.go
1 // Copyright 2023 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package multipart 6 7 import ( 8 "net/textproto" 9 _ "unsafe" // for go:linkname 10 ) 11 12 // readMIMEHeader is defined in package [net/textproto]. 13 // 14 //go:linkname readMIMEHeader net/textproto.readMIMEHeader 15 func readMIMEHeader(r *textproto.Reader, maxMemory, maxHeaders int64) (textproto.MIMEHeader, error) 16