hello.go 333 B

123456789101112
  1. // Copyright 2015 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Package hello is a trivial package for gomobile bind example.
  5. package hello
  6. import "fmt"
  7. func Greetings(name string) string {
  8. return fmt.Sprintf("Hello, %s!", name)
  9. }