Skip to content
Snippets Groups Projects
Commit 10f1b6a0 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

strings: add Fields example

R=golang-dev, rsc, r
CC=golang-dev
https://golang.org/cl/5629043
parent a044154a
No related branches found
No related tags found
No related merge requests found
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package strings_test
import (
"fmt"
"strings"
)
// Fields are: ["foo" "bar" "baz"]
func ExampleFields() {
fmt.Printf("Fields are: %q", strings.Fields(" foo bar baz "))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment