Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qualified

A simple library to deal with delimited strings that could contain the delimiter in the data itself.

Features

  • Split strings by a delimiter and escape the delimiter character if contained in a qualified text field.
    • ex. one,two,"three,four",five
fields := qualified.SplitWithQual("Ohhi, mark", ",", "")
fmt.Println(fields) // [Ohhi  mark]
  • Get a map that contains the length of each field
lens := qualified.FieldLengths("\"Ohhi, mark\",\"Hey bud\"", ",", "\"")
fmt.Println(lens) // map[0:12 1:9]

About

A simple library to deal with delimited strings that _could_ contain the delimiter in the data itself.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages