mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 15:20:33 +07:00
12 lines
166 B
Go
12 lines
166 B
Go
package utils
|
|
|
|
import "go/ast"
|
|
|
|
func IsSlice(expr ast.Expr) bool {
|
|
arrayType, ok := expr.(*ast.ArrayType)
|
|
if !ok {
|
|
return false
|
|
}
|
|
return arrayType.Len == nil
|
|
}
|