Description

FieldsN is simliar with bytes.Fields, but only consider space and '\t' as space, and will include all content in the final slice with ending white space characters trimmed. bytes.Split can't split on both space and '\t', and considers two separator as an empty item. bytes.FieldsFunc can't specify how much fields we need, which is required for parsing response status line. Returns nil if n < 0.

FieldsN is referenced in 1 repository

github.com/cyfdecyf/cow