Skip to content

String tokenizer for Go based on the Ruby Shellwords module

Notifications You must be signed in to change notification settings

lmika/shellwords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

shellwords

A simple string tokenizer for Go, inspired by Ruby's Shellwords module.

Shellwords supports tokens separated by whitespace or delimited by single or double quotes.

To get:

go get github.com/lmika/shellwords

To use:

package main

import "fmt"
import "shellwords"

func main() {
    shellwords.Split("these 'a three' tokens")  // ["these", "a three", "tokens"]
}

Documentation at http://godoc.org/github.com/lmika/shellwords

About

String tokenizer for Go based on the Ruby Shellwords module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages