@@ -80,6 +80,9 @@ func (P *proxy_HTMLer) HTML() string {
80
80
return P .HTML_ (P .Object )
81
81
}
82
82
83
+ // compile-time check that *proxy_HTMLer implements HTMLer
84
+ var _ HTMLer = (* proxy_HTMLer )(nil )
85
+
83
86
// --------------- proxy for display.JPEGer ---------------
84
87
type proxy_JPEGer struct {
85
88
Object interface {}
@@ -90,16 +93,22 @@ func (P *proxy_JPEGer) JPEG() []byte {
90
93
return P .JPEG_ (P .Object )
91
94
}
92
95
96
+ // compile-time check that *proxy_JPEGer implements JPEGer
97
+ var _ JPEGer = (* proxy_JPEGer )(nil )
98
+
93
99
// --------------- proxy for display.JSONer ---------------
94
100
type proxy_JSONer struct {
95
101
Object interface {}
96
- JSON_ func (interface {}) string
102
+ JSON_ func (interface {}) map [ string ] interface {}
97
103
}
98
104
99
- func (P * proxy_JSONer ) JSON () string {
105
+ func (P * proxy_JSONer ) JSON () map [ string ] interface {} {
100
106
return P .JSON_ (P .Object )
101
107
}
102
108
109
+ // compile-time check that *proxy_JSONer implements JSONer
110
+ var _ JSONer = (* proxy_JSONer )(nil )
111
+
103
112
// --------------- proxy for display.Latexer ---------------
104
113
type proxy_Latexer struct {
105
114
Object interface {}
@@ -110,6 +119,9 @@ func (P *proxy_Latexer) Latex() string {
110
119
return P .Latex_ (P .Object )
111
120
}
112
121
122
+ // compile-time check that *proxy_Latexer implements Latexer
123
+ var _ Latexer = (* proxy_Latexer )(nil )
124
+
113
125
// --------------- proxy for display.Markdowner ---------------
114
126
type proxy_Markdowner struct {
115
127
Object interface {}
@@ -120,6 +132,9 @@ func (P *proxy_Markdowner) Markdown() string {
120
132
return P .Markdown_ (P .Object )
121
133
}
122
134
135
+ // compile-time check that *proxy_Markdowner implements Markdowner
136
+ var _ Markdowner = (* proxy_Markdowner )(nil )
137
+
123
138
// --------------- proxy for display.PNGer ---------------
124
139
type proxy_PNGer struct {
125
140
Object interface {}
@@ -130,6 +145,9 @@ func (P *proxy_PNGer) PNG() []byte {
130
145
return P .PNG_ (P .Object )
131
146
}
132
147
148
+ // compile-time check that *proxy_PNGer implements PNGer
149
+ var _ PNGer = (* proxy_PNGer )(nil )
150
+
133
151
// --------------- proxy for display.PDFer ---------------
134
152
type proxy_PDFer struct {
135
153
Object interface {}
@@ -140,6 +158,9 @@ func (P *proxy_PDFer) PDF() []byte {
140
158
return P .PDF_ (P .Object )
141
159
}
142
160
161
+ // compile-time check that *proxy_PNGer implements PNGer
162
+ var _ PNGer = (* proxy_PNGer )(nil )
163
+
143
164
// --------------- proxy for display.Renderer ---------------
144
165
type proxy_Renderer struct {
145
166
Object interface {}
@@ -150,6 +171,9 @@ func (P *proxy_Renderer) Render() Data {
150
171
return P .Render_ (P .Object )
151
172
}
152
173
174
+ // compile-time check that *proxy_Renderer implements Renderer
175
+ var _ Renderer = (* proxy_Renderer )(nil )
176
+
153
177
// --------------- proxy for display.SimpleRenderer ---------------
154
178
type proxy_SimpleRenderer struct {
155
179
Object interface {}
@@ -160,6 +184,9 @@ func (P *proxy_SimpleRenderer) SimpleRender() MIMEMap {
160
184
return P .SimpleRender_ (P .Object )
161
185
}
162
186
187
+ // compile-time check that *proxy_SimpleRenderer implements SimpleRenderer
188
+ var _ SimpleRenderer = (* proxy_SimpleRenderer )(nil )
189
+
163
190
// --------------- proxy for display.SVGer ---------------
164
191
type proxy_SVGer struct {
165
192
Object interface {}
@@ -170,6 +197,9 @@ func (P *proxy_SVGer) SVG() string {
170
197
return P .SVG_ (P .Object )
171
198
}
172
199
200
+ // compile-time check that *proxy_SVGer implements SVGer
201
+ var _ SVGer = (* proxy_SVGer )(nil )
202
+
173
203
// --------------- proxy for image.Image ---------------
174
204
type proxy_image_Image struct {
175
205
Object interface {}
@@ -188,6 +218,9 @@ func (P *proxy_image_Image) ColorModel() color.Model {
188
218
return P .ColorModel_ (P .Object )
189
219
}
190
220
221
+ // compile-time check that *proxy_image_Image implements image.Image
222
+ var _ image.Image = (* proxy_image_Image )(nil )
223
+
191
224
// --------------------------------------------------------
192
225
// allow importing "display" and "github.com/gopherdata/gophernotes" packages
193
226
func init () {
0 commit comments