From 378e01a632c9c4c3133551888368245356bb2a5b Mon Sep 17 00:00:00 2001 From: Alexander Krieg Date: Sat, 15 Jun 2019 13:36:53 +0200 Subject: [PATCH] Add struct for demonstration fillstruct --- .../vscode-remote-try-go/hello/hello.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/github.com/microsoft/vscode-remote-try-go/hello/hello.go b/src/github.com/microsoft/vscode-remote-try-go/hello/hello.go index f0b1780..717e9c3 100644 --- a/src/github.com/microsoft/vscode-remote-try-go/hello/hello.go +++ b/src/github.com/microsoft/vscode-remote-try-go/hello/hello.go @@ -2,7 +2,22 @@ package hello import () + +type user struct { + ID int64 + Name string + Addr *address +} + +type address struct { + City string + ZIP int + LatLng [2]float64 +} + +var alex = user{} + // Hello writes a welcome string func Hello() string { - return "Hello golang!" + return "Hello, "+alex.Name }