andygeiss/esp32-transpiler

View on GitHub
transpile/handlers/handleValueSpecValues.go

Summary

Maintainability
A
0 mins
Test Coverage
package handlers

import "go/ast"

func handleValueSpecValues(values []ast.Expr) string {
    code := ""
    for _, value := range values {
        switch v := value.(type) {
        case *ast.BasicLit:
            code += handleBasicLit(v)
        }
    }
    return code
}