in

why Yes I do Know Go And Python

why Yes I do Know Go And Python

import os

def make go_file(file_name):

os-makedirs (file_name, exist_ok=True)

os. chdir(file_name)

with open(f”{file_name}.go”, “w”) as file:

file writel

•’package main

import (

“fmt”

func main) {

fmt.Println(*

Hello, I’m a GO script written by a Python script lol!

That’s kinda dumb, isn’t it?

*)

•’)

os system(f’go run (file_name) .go’)

make_go_file(“go_file”)

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings