You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- // Copyright © 2023 OpenIMSDK open source community. All rights reserved.
- // Licensed under the MIT License (the "License");
- // you may not use this file except in compliance with the License.
-
- package utils
-
- import "strconv"
-
- func IntToString(i interface{}) string {
- return strconv.FormatInt(int64(i.(int)), 10)
- }
-
- func StringToInt(i string) int {
- j, _ := strconv.Atoi(i)
- return j
- }
|