Golang go/ast.ForStmt type example
package go/ast
A ForStmt represents a for statement.
Golang go/ast.ForStmt type usage example
func NodeDescription(n ast.Node) string {
switch n := n.(type) {
case *ast.ArrayType:
return "array type"
case *ast.AssignStmt:
return "assignment"
case *ast.ForStmt:
return "for loop"
}
Reference :
Advertisement
Something interesting
Tutorials
+5.4k Golang : Get S3 or CloudFront object or file information
+10.8k PHP : Convert(cast) bigInt to string
+11.3k Golang : Characters limiter example
+9.1k Golang : Gonum standard normal random numbers example
+7.3k Golang : Fixing Gorilla mux http.FileServer() 404 problem
+22.4k Golang : How to read JPG(JPEG), GIF and PNG files ?
+11.7k Golang : How to detect a server/machine network interface capabilities?
+11.6k Golang : Surveillance with web camera and OpenCV
+13.8k Golang : Gin framework accept query string by post request example
+25.9k Golang : How to read integer value from standard input ?
+6.8k Golang : Muxing with Martini example
+19.9k Golang : Count JSON objects and convert to slice/array