example packages
This commit is contained in:
22
example/example_go/example_go.go
Normal file
22
example/example_go/example_go.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
"common_msgs"
|
||||
)
|
||||
|
||||
type Example_go struct{}
|
||||
|
||||
func (n *Example_go) Run() {
|
||||
for {
|
||||
// TODO: Implement node logic
|
||||
fmt.Println("Running example_go")
|
||||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
node := &Example_go{}
|
||||
node.Run()
|
||||
}
|
4
example/example_go/package.bellande
Normal file
4
example/example_go/package.bellande
Normal file
@@ -0,0 +1,4 @@
|
||||
dependencies:
|
||||
- common_msgs
|
||||
language: go
|
||||
name: ../exampleexample_go
|
Reference in New Issue
Block a user