Documentation ¶
Overview ¶
Package partlib includes supporting functions for parts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamTextFile ¶
StreamTextFile reads files to read from an input channel, and streams text lines from the file as strings to the output.
Types ¶
type FileLine ¶
FileLine represents a single line from a text file. It includes the file path, the line itself, and the line number starting from 0.
type HTTPHandlerChan ¶
type HTTPHandlerChan chan<- HTTPRequest
HTTPHandlerChan is a channel that can be sent HTTPRequests, thus supporting a simple implementation of ServerHTTP.
func (HTTPHandlerChan) ServeHTTP ¶
func (h HTTPHandlerChan) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HTTPRequest ¶
type HTTPRequest interface { http.ResponseWriter Info() *http.Request Close() error }
HTTPRequest represents incoming HTTP requests and the means to respond to them.
Click to show internal directories.
Click to hide internal directories.