mirror of
https://github.com/rwxrob/bonzai
synced 2024-11-18 15:25:45 +00:00
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" ""]
|
|
}
|