File: client.go

package info (click to toggle)
golang-github-golang-mock 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, forky, sid, trixie
  • size: 800 kB
  • sloc: sh: 58; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 185 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
package client

import "fmt"

type Client struct{}

func (c *Client) Greet(in GreetInput) string {
	return fmt.Sprintf("Hello, %s!", in.Name)
}

type GreetInput struct {
	Name string
}