def create_public_function(text): if mode == "python": newText = 'def %s(' % format_snake_case(text) Text("%(text)s").execute({"text": newText}) elif mode == "gopher": newText = 'func %s(' % format_pascal_case(text) Text("%(text)s").execute({"text": newText})
def create_private_function(text): if mode == "python": newText = 'def _%s(' % format_snake_case(text) Text("%(text)s").execute({"text": newText}) elif mode == "gopher": newText = 'func %s(' % format_camel_case(text) Text("%(text)s").execute({"text": newText})
def create_public_function(text): Text('def %s(' % format_snake_case(text)).execute()
def create_private_function(text): Text('def _%s(' % format_snake_case(text)).execute()