change doc output

This commit is contained in:
2023-09-30 15:32:02 +02:00
parent 62aff64f3b
commit 74a61c0a51
3 changed files with 1 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ func GetDocumentation() string {
result += fmt.Sprintf("\n### %v\nDescription: %v \nValues:\n", act.GetName(), act.GetDescription())
for _, opt := range act.GetOptions() {
result += fmt.Sprintf("- Name: %v\n\t- Type: %v\n\t- Descr: %v\n\t- Default: %v\n",
result += fmt.Sprintf("- Name: **%v**\n\t- Type: %v\n\t- Descr: %v\n\t- Default: %v\n",
opt.Name, opt.Type, opt.Description, opt.Default)
result += "\n\n"
}

View File

@@ -49,7 +49,6 @@ func (t EthernetDisconnect) Listen() {
actions.Fire(t.action)
}
// func NewTimeOut(d time.Duration, action actions.Action) EthernetDisconnect {
func NewEthernetDisconnect(config internal.KillSwitchConfig) (EthernetDisconnect, error) {
result := EthernetDisconnect{
WaitTillConnected: true,

View File

@@ -6,8 +6,6 @@ import (
"unknown.com/gokill/internal"
)
// TestHelloName calls greetings.Hello with a name, checking
// for a valid return value.
func TestEthernetDisconnetConfig(t *testing.T) {
type EthernetTest struct {
testConfig internal.KillSwitchConfig