Exemplo n.º 1
0
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})
Exemplo n.º 2
0
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})
Exemplo n.º 3
0
def create_public_function(text):
    Text('def %s(' % format_snake_case(text)).execute()
Exemplo n.º 4
0
def create_private_function(text):
    Text('def _%s(' % format_snake_case(text)).execute()