change doc output
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user