gstr_is.go 437 B

1234567891011121314
  1. // Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
  2. //
  3. // This Source Code Form is subject to the terms of the MIT License.
  4. // If a copy of the MIT was not distributed with this file,
  5. // You can obtain one at https://github.com/gogf/gf.
  6. package gstr
  7. import "github.com/gogf/gf/v2/internal/utils"
  8. // IsNumeric tests whether the given string s is numeric.
  9. func IsNumeric(s string) bool {
  10. return utils.IsNumeric(s)
  11. }