Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (36 sloc) 0.571 kb
574beff @josh encode atoms
authored
1 package bert
2
3 import (
4 "os";
5 )
6
7 const (
8 VersionTag = 131;
9 SmallIntTag = 97;
10 IntTag = 98;
11 SmallBignumTag = 110;
12 LargeBignumTag = 111;
13 FloatTag = 99;
14 AtomTag = 100;
15 SmallTupleTag = 104;
16 LargeTupleTag = 105;
17 NilTag = 106;
18 StringTag = 107;
19 ListTag = 108;
20 BinTag = 109;
21 )
22
23 type Atom string
24
59d1cab @josh decode uses generic reader instead of buffer
authored
25 const (
26 BertAtom = Atom("bert");
27 NilAtom = Atom("nil");
28 TrueAtom = Atom("true");
29 FalseAtom = Atom("false");
30 )
31
574beff @josh encode atoms
authored
32 type Term interface{}
33
34 type Error struct {
35 os.ErrorString;
36 }
eecfb5d @josh marshal and unmarshal burp request and responses
authored
37
38 type Request struct {
39 Kind Atom;
40 Module Atom;
41 Function Atom;
42 Arguments []Term;
43 }
Something went wrong with that request. Please try again.