bonzai/bonzai_test.go

19 lines
363 B
Go
Raw Normal View History

2022-02-20 00:22:03 +00:00
// Copyright 2022 Robert S. Muhlestein.
// SPDX-License-Identifier: Apache-2.0
2022-02-17 22:47:28 +00:00
2022-02-17 04:31:12 +00:00
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" ""]
2022-02-17 04:31:12 +00:00
}