-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add minimum_data_rate_2g and minimum_data_rate_5g fields to unifi_wlan (
#159) * Add minimum_data_rate_2g and minimum_data_rate_5g fields to unifi_wlan * Update implementation to match api/sdk types * Fix disabled state Co-authored-by: Paul Tyng <paul@paultyng.net>
- Loading branch information
Showing
4 changed files
with
146 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package provider | ||
|
||
import "strconv" | ||
|
||
func markdownValueListInt(values []int) string { | ||
switch { | ||
case len(values) == 0: | ||
return "" | ||
case len(values) == 1: | ||
return "`" + strconv.Itoa(values[0]) + "`" | ||
default: | ||
s := "" | ||
for i := 0; i < len(values)-1; i++ { | ||
s += "`" + strconv.Itoa(values[i]) + "`, " | ||
} | ||
s += " and `" + strconv.Itoa(values[len(values)-1]) + "`" | ||
return s | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters