@kjk1/

gobook function parameters

Go

No description

fork
loading
Files
  • main.go

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.3204134350917205","path":"main.go","file":{"path":"main.go","content":{"asEncoding":{"base64":"cGFja2FnZSBtYWluCgppbXBvcnQgKAoJImZtdCIKKQoKLy8gOnNob3cgc3RhcnQKZnVuYyBTYXlIZWxsb1RvTWUoZmlyc3ROYW1lLCBsYXN0TmFtZSBzdHJpbmcsIGFnZSBpbnQpIHsKCWZtdC5QcmludGYoIkhlbGxvLCAlcyAlcyFcbiIsIGZpcnN0TmFtZSwgbGFzdE5hbWUpCglmbXQuUHJpbnRmKCJZb3UgYXJlICVkXG4iLCBhZ2UpCn0KCmZ1bmMgbWFpbigpIHsKCVNheUhlbGxvVG9NZSgiSm9obiIsICJEb2UiLCAzNSkKfQoKLy8gOnNob3cgZW5k"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"fmt"
)

// :show start
func SayHelloToMe(firstName, lastName string, age int) {
	fmt.Printf("Hello, %s %s!\n", firstName, lastName)
	fmt.Printf("You are %d\n", age)
}

func main() {
	SayHelloToMe("John", "Doe", 35)
}

// :show end