github.com/google/capslock@v0.2.3-0.20240517042941-dac19fc347c0/testpkgs/callutf8/callutf8.go (about)

     1  // Copyright 2023 Google LLC
     2  //
     3  // Use of this source code is governed by a BSD-style
     4  // license that can be found in the LICENSE file or at
     5  // https://developers.google.com/open-source/licenses/bsd
     6  
     7  // Package callutf8 is used for testing.
     8  package callutf8
     9  
    10  import (
    11  	"unicode/utf8"
    12  )
    13  
    14  // Foo is a test function with no interesting capabilities.
    15  func Foo() int {
    16  	return 1 + utf8.RuneLen('1')
    17  }