-
Notifications
You must be signed in to change notification settings - Fork 0
/
mcaprojenjsiiexample.go
75 lines (59 loc) · 1.14 KB
/
mcaprojenjsiiexample.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// mca-projen-jsii-example
package mcaprojenjsiiexample
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/marciocadev/mca-projen-jsii-example-go/mcaprojenjsiiexample/jsii"
)
// My Hello class.
type Hello interface {
// My sayGodbye function.
//
// Returns: Godbye.
SayGodbye(name *string) *string
// My sayHello function.
//
// Returns: Greetings.
SayHello(name *string) *string
}
// The jsii proxy struct for Hello
type jsiiProxy_Hello struct {
_ byte // padding
}
func NewHello() Hello {
_init_.Initialize()
j := jsiiProxy_Hello{}
_jsii_.Create(
"mca-projen-jsii-example.Hello",
nil, // no parameters
&j,
)
return &j
}
func NewHello_Override(h Hello) {
_init_.Initialize()
_jsii_.Create(
"mca-projen-jsii-example.Hello",
nil, // no parameters
h,
)
}
func (h *jsiiProxy_Hello) SayGodbye(name *string) *string {
var returns *string
_jsii_.Invoke(
h,
"sayGodbye",
[]interface{}{name},
&returns,
)
return returns
}
func (h *jsiiProxy_Hello) SayHello(name *string) *string {
var returns *string
_jsii_.Invoke(
h,
"sayHello",
[]interface{}{name},
&returns,
)
return returns
}