mgmt version (eg: mgmt --version):
mgmt version 0.0.21-127-gbe4b871
operating system/distribution (eg: uname -a):
Linux 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
golang version (eg: go version):
go version go1.13.8 linux/amd64
Description:
Random functions, let me know if any of these are useful
I already see a split and to_lower function in strings, so what about join and to_upper?
while I'm at it most of the functions that are in go's strings module, or all of them?
I've also thought about a copy function that takes func Copy(text, sep string, copies int) returning either a string copied that many times or a slice of that string that many times, don't know if that useful but just throwing ideas out there.
Also what about some type of DNS, where you get func Dns(domainName string) and return a string of the IP?
ex. input: "google.com" returns "172.217.165.46"
What about func IPRange(CIDRAddr string) returns network range?
ex. input: "192.168.0.1/24" returns "192.168.0.1-192.168.0.254" or return a slice of strings ["192.168.0.1", 192.168.0.2" ...]
Those are some of my ideas so far, let me know which are most useful.
Versions:
mgmt version (eg:
mgmt --version
): mgmt version 0.0.21-127-gbe4b871operating system/distribution (eg:
uname -a
): Linux 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linuxgolang version (eg:
go version
): go version go1.13.8 linux/amd64Description:
Random functions, let me know if any of these are useful
I already see a split and to_lower function in strings, so what about join and to_upper? while I'm at it most of the functions that are in go's strings module, or all of them?
I've also thought about a copy function that takes
func Copy(text, sep string, copies int)
returning either a string copied that many times or a slice of that string that many times, don't know if that useful but just throwing ideas out there.Also what about some type of DNS, where you get
func Dns(domainName string)
and return a string of the IP? ex. input: "google.com" returns "172.217.165.46"What about
func IPRange(CIDRAddr string)
returns network range? ex. input: "192.168.0.1/24" returns "192.168.0.1-192.168.0.254" or return a slice of strings ["192.168.0.1", 192.168.0.2" ...]Those are some of my ideas so far, let me know which are most useful.