(filename string)
| 11 | } |
| 12 | |
| 13 | func readFile(filename string) (string, error) { |
| 14 | content, err := os.ReadFile(filename) |
| 15 | if err != nil { |
| 16 | return "", err |
| 17 | } |
| 18 | |
| 19 | return string(content), nil |
| 20 | } |
| 21 | |
| 22 | // NamespacedName converts a namespace and name to a C-compatible format. |
| 23 | // E.g., namespace "Go\Extension" and name "MyClass" become "Go_Extension_MyClass". |
no outgoing calls