// IsInt returns true if the given string can be converted to an integer.
// The string must contain no whitespaces.
IsInt returns true if the given string can be converted to an integer.
The string must contain no whitespaces.
// IsInt returns true if the given string can be converted to an integer . // The string must contain no whitespaces .
func IsInt(s string) bool {
	for i, c := range s {
		if (c < '0' || c > '9') && (c != '-' || i != 0) {
			return false
		}
	}
	return true
}
func IsInt ( s string ) bool { for i , c := range s { if ( c < '0' || c > '9' ) && ( c != '-' || i != 0 ) { return false } } return true }
IsInt returns true if the given string can be converted to an integer.
IsInt returns true if the given string can be converted to an integer .