its based on arrays embedded in arrays
[
"hello world"
]
this program is just a string that says hello world. it is now at location [0]
package main | |
import ( | |
"github.com/bwmarrin/discordgo" | |
"flag" | |
log "github.com/Sirupsen/logrus" | |
"fmt" | |
"time" | |
"errors" | |
) |
import ( | |
"fmt | |
"net/http" | |
"bytes" | |
) | |
type statsForm struct { | |
ServerCount int `json:"server_count"` | |
} |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct node { | |
int value; | |
struct node * next; | |
} node_t; | |
node_t * node_new(void) { | |
node_t * new_node = NULL; |
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/bwmarrin/discordgo" | |
"github.com/sirupsen/logrus" | |
"strconv" | |
"strings" | |
) |
package main | |
import ( | |
"fmt" | |
"regexp" | |
"strconv" | |
"strings" | |
) | |
func main() { |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"regexp" | |
"sort" | |
"strconv" | |
"strings" | |
) |
def parse_direction_name: { | |
name: ., | |
ordinal: ( | |
if . == "N" then 0 | |
elif . == "E" then 1 | |
elif . == "S" then 2 | |
elif . == "W" then 3 | |
else error("invalid rover direction: " + .) | |
end | |
), |