Documentation
¶
Index ¶
- Variables
- func AddInt64(x, y int64) (sum int64, ok bool)
- func FormatIth(i int) string
- func PathIsLexicalDescendant(path, maybeAncestorPath string) bool
- func ReadJSON200Response(resp *http.Response, respBody any, disallowUnknownFields bool) error
- func SumInt64(x ...int64) (sum int64, ok bool)
- func UnmarshalJSON(reader io.Reader, v any, disallowUnknownFields bool) error
- type ConcatReader
- type Environ
- func (e *Environ) Copy() *Environ
- func (e *Environ) ForEach(callback func(name, value string) bool)
- func (e *Environ) Get(name string) string
- func (e *Environ) GetSlice() []string
- func (e *Environ) Lookup(name string) (value string, ok bool)
- func (e *Environ) Set(name, value string)
- func (e *Environ) Unset(name string)
- type TestReadCloser
- type TestWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReadAfterClose = errors.New("cannot Read from closed *TestReadCloser")
ErrReadAfterClose is a sentinel error returned by (*TestReadCloser).Read.
Functions ¶
func PathIsLexicalDescendant ¶
PathIsLexicalDescendant return true if and only if path == maybeAncestorPath or strings.HasPrefix(path + "/", maybeAncestorPath + "/")
func ReadJSON200Response ¶
Types ¶
type ConcatReader ¶
type ConcatReader struct {
// contains filtered or unexported fields
}
func NewConcatReader ¶
func (*ConcatReader) Close ¶
func (c *ConcatReader) Close() error
type TestReadCloser ¶
type TestReadCloser struct { CloseCount int CloseErr error // ReadData is data returned by Read. ReadData []byte // ReadErr is an error to return from Read after ReadData is consumed. ReadErr error }
func (*TestReadCloser) Close ¶
func (t *TestReadCloser) Close() error
type TestWriter ¶
func NewTestWriter ¶
func NewTestWriter(err error, errAfter int) (*TestWriter, error)
Click to show internal directories.
Click to hide internal directories.