MCPcopy Create free account
hub / github.com/Autodesk/AutomaticComponentToolkit / buildGoInterfaces

Function buildGoInterfaces

Source/buildbindinggo.go:246–256  ·  view source on GitHub ↗
(component ComponentDefinition, w LanguageWriter)

Source from the content-addressed store, hash-verified

244}
245
246func buildGoInterfaces(component ComponentDefinition, w LanguageWriter) {
247 w.Writeln("/*************************************************************************************************************************")
248 w.Writeln(" Declaration of interfaces")
249 w.Writeln("**************************************************************************************************************************/")
250 w.Writeln("")
251 w.Writeln("type %sHandle interface {", component.NameSpace)
252 w.Writeln(" Close() error")
253 w.Writeln(" IsValid() bool")
254 w.Writeln("}")
255 w.Writeln("")
256}
257
258func buildGoImplementation(component ComponentDefinition, implw LanguageWriter) {
259 NameSpace := component.NameSpace

Callers 1

buildGoWrapperFunction · 0.85

Calls 1

WritelnMethod · 0.80

Tested by

no test coverage detected