Working on improving the create device page
This commit is contained in:
15
template_funcs.go
Normal file
15
template_funcs.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
func createDeviceLink(deviceType, name string, qr *int) CreateDeviceLink {
|
||||
return CreateDeviceLink{
|
||||
Type: deviceType,
|
||||
Name: name,
|
||||
Qr: qr,
|
||||
}
|
||||
}
|
||||
|
||||
type CreateDeviceLink struct {
|
||||
Type string
|
||||
Name string
|
||||
Qr *int
|
||||
}
|
||||
Reference in New Issue
Block a user