-
-
Save srfrog/afeca64e931b1b6e8af649278805d1c1 to your computer and use it in GitHub Desktop.
A Go/C polyglot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// \ | |
/* | |
#include <stdio.h> | |
int main() { | |
printf("Hello, World from C!\n"); | |
return 0; | |
} | |
#if 0 | |
//*/ | |
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello, World from Go") | |
} | |
// \ | |
/* | |
#endif | |
//*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment