mirror of https://github.com/rwxrob/bonzai
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
363 B
Go
19 lines
363 B
Go
// Copyright 2022 Robert S. Muhlestein.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package bonzai_test
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/rwxrob/bonzai"
|
|
)
|
|
|
|
func ExampleArgsFrom() {
|
|
fmt.Printf("%q\n", bonzai.ArgsFrom(`greet hi french`))
|
|
fmt.Printf("%q\n", bonzai.ArgsFrom(`greet hi french `))
|
|
// Output:
|
|
// ["greet" "hi" "french"]
|
|
// ["greet" "hi" "french" ""]
|
|
}
|