1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-07 06:02:27 +08:00

refactor: interface{} -> any

This commit is contained in:
dudaodong
2022-03-16 18:41:40 +08:00
parent af480efa8c
commit c939b26cb8
34 changed files with 194 additions and 195 deletions

View File

@@ -1,4 +1,3 @@
// Copyright 2021 dudaodong@gmail.com. All rights reserved.
// Use of this source code is governed by MIT license
// Package strutil implements some functions to manipulate string.
@@ -197,7 +196,7 @@ func AfterLast(s, char string) string {
}
// IsString check if the value data type is string or not.
func IsString(v interface{}) bool {
func IsString(v any) bool {
if v == nil {
return false
}