Documentation
¶
Overview ¶
*
- Copyright 2017 ~ 2025 the original author or authors[983708408@qq.com]. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2017 ~ 2025 the original author or authors[983708408@qq.com]. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2017 ~ 2025 the original author or authors[983708408@qq.com]. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2017 ~ 2025 the original author or authors[983708408@qq.com]. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
*
- Copyright 2017 ~ 2025 the original author or authors[983708408@qq.com]. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Index ¶
- func CopyObject(srcData []byte, dst interface{})
- func CopyProperties(src interface{}, dst interface{})
- func DeepCopy(value interface{}) interface{}
- func ExecShell(s string) (string, error)
- func GetHardwareAddr(netcard string) string
- func GetNetworkInterfaces(port string) string
- func IsEmpty(str string) bool
- func ReadFileToString(filePth string) string
- func StringsContains(array []string, val string) bool
- func ToJSONString(v interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyProperties ¶
func CopyProperties(src interface{}, dst interface{})
Copy src to dst properties.
func ExecShell ¶
Blocking the execution of shell commands, waiting for execution to complete and returning standard output.
func GetHardwareAddr ¶
Get hardware information such as network card as host host identification.
func GetNetworkInterfaces ¶
Get network interfaces. e.g. var sumCommand = "ss -n sport == 22|awk '{sumup += $3};{sumdo += $4};END {print sumup,sumdo}'"
func StringsContains ¶
Check whether the string contains
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.