.onedev-buildspec.yml Loading last commit info...
Dockerfile
README.md
file-a
README.md

CrossLang Runtime Documentation

/^ Start a process ^/
func Process.Start(process_object);
/^ Get whether object is a list or dynamic list ^/
func TypeIsList(object);
/^ Get whether object is a stream ^/
func TypeIsStream(object);
/^ Get whether object is a dictionary or dynamic dictionary ^/
func TypeIsDictionary(object);
/^ Get whether object is callable ^/
func TypeIsCallable(object);
/^ Get whether object is a string ^/
func TypeIsString(object);
/^ Get whether object is a number ^/
func TypeIsNumber(object);
/^ Listen (creates application loop) ^/
func Net.Http.ListenSimpleWithLoop(server, port);
/^ Create an http request ^/
func Net.Http.MakeRequest(url, $extra);
/^ Url encode path ^/
func Net.Http.UrlPathEncode(path);
/^ Url decode query param ^/
func Net.Http.UrlDecode(param);
/^ Url encode query param ^/
func Net.Http.UrlEncode(param);
/^ Get mimetype from extension ^/
func Net.Http.MimeType(ext);
/^ Url decode path ^/
func Net.Http.UrlPathDecode(path);
/^ Html encode ^/
func Net.Http.HtmlEncode(param);
/^ Create a network stream ^/
func Net.NetworkStream(ipv6, datagram);
/^ Get whether object is a double (not a long) ^/
func TypeIsDouble(object);
/^ Clear renderer with renderer draw color ^/
func SDL2.RenderClear(renderer);
/^ Init SDL2 ^/
func SDL2.Init();
/^ Present frame (you are finished with the frame) ^/
func SDL2.RenderPresent(renderer);
/^ Set SDL2 Renderer Draw Color ^/
func SDL2.SetRenderDrawColor(renderer, r, g, b, a);
/^ Create a SDL2 Window ^/
func SDL2.CreateWindow(title, x, y, w, h, flags);
/^ Get events ^/
func SDL2.PollEvent();
/^ Fill a rectangle using SDL ^/
func SDL2.RenderFillRect(renderer, dictionary_with_x_y_w_h);
/^ Draw a rectangle using SDL ^/
func SDL2.RenderDrawRect(renderer, dictionary_with_x_y_w_h);
/^ Create a SDL2 Renderer ^/
func SDL2.CreateRenderer(window, );
/^ Base64 encode ^/
func Crypto.Base64Encode(data);
/^ Sha512 Algorithm ^/
func Crypto.Sha512($is384);
/^ Sha256 Algorithm ^/
func Crypto.Sha256($is224);
/^ Sha1 Algorithm (needed for WebSocket handshake/BitTorrent etc) (don't use unless you have no other choice) ^/
func Crypto.Sha1();
/^ Base64 decode ^/
func Crypto.Base64Decode(str);
/^ Create bytearray but with random bytes in it instead of zeros (this uses mbedtls by the way) ^/
func Crypto.RandomBytes(byteCount, personalString);
/^ Hash passwords with PBKDF2 ^/
func Crypto.PBKDF2(pass, salt, itterations, keylen, shanum);
/^ Get whether object is a long (not a double) ^/
func TypeIsLong(object);
/^ Get whether object is not null or undefined ^/
func TypeIsDefined(object);
/^ Eval source code ^/
func VM.Eval(source);
/^ Load a crossvm executable ^/
func VM.LoadExecutable(stream);
/^ Create root environment ^/
func VM.CreateEnvironment($dict);
/^ Compile Source ^/
func VM.Compile(dict);
/^ Get current environment for reflection purposes ^/
func VM.getCurrentEnvironment();
/^ Get root environment for reflection purposes ^/
func VM.getRootEnvironment();
/^ Get root environment as a dictionary ^/
func VM.getRootEnvironmentAsDictionary();
/^ Get whether object is susceptible to garbage collection ^/
func TypeIsHeap(object);
/^ Parse Long from String ^/
func ParseLong(arg, $base);
/^ Parse Double from String ^/
func ParseDouble(arg);
/^ Get a field in dictionary ^/
func Dictionary.GetField(dict, key);
/^ Set a field in dictionary ^/
func Dictionary.SetField(dict, key, value);
/^ Get Dictionary Item Enumerable for the each(item : Dictionary.Items(myDict)){item.Key; item.Value;} ^/
func Dictionary.Items(dictionary);
/^ Get environment variable ^/
func Env.GetAt(key);
/^ Get cache folder ^/
func Env.getCache();
/^ Set environment variable ^/
func Env.SetAt(key, value);
/^ Get downloads folder ^/
func Env.getDesktop();
/^ Get platform name ^/
func Env.getPlatform();
/^ Get documents folder ^/
func Env.getDocuments();
/^ Get downloads folder ^/
func Env.getDownloads();
/^ Get user folder ^/
func Env.getUser();
/^ Get pictures folder ^/
func Env.getPictures();
/^ Get music folder ^/
func Env.getMusic();
/^ Get videos folder ^/
func Env.getVideos();
/^ Get state folder ^/
func Env.getState();
/^ Get the absolute path for executable ^/
func Env.GetRealExecutablePath(path);
/^ Get config folder ^/
func Env.getConfig();
/^ Get data folder ^/
func Env.getData();
/^ Get whether object is a virtual filesystem ^/
func TypeIsVFS(object);
/^ Create regex object ^/
func Regex(regex);
/^ Create thread ^/
func Thread(callback);
/^ Create bytearray with optional either size (to size it) or string argument (to fill byte array) ^/
func ByteArray($data);
/^ Get type of object ^/
func TypeOf(object);
/^ Create a Path from parts ^/
func Path.Create(relative, parts);
/^ Create Absolute Root Path ^/
func Path.Root();
/^ Create a Path from string ^/
func Path.FromString(path);
/^ Stop the program with an optional error message ^/
func Console.Fatal($text);
/^ Reads a byte from stdin ^/
func Console.Read();
/^ Set whether terminal is sending signals for CTRL+C (true) or via read (false) ^/
func Console.setSignals(flag);
/^ Get whether terminal is sending signals for CTRL+C (true) or via read (false) ^/
func Console.getSignals();
/^ Write text "text" to stdout ^/
func Console.Write(text);
/^ Reads line from stdin ^/
func Console.ReadLine();
/^ Set whether terminal is buffering line by line (true) or byte by byte (false) ^/
func Console.setCanonical(flag);
/^ Get whether terminal is buffering line by line (true) or byte by byte (false) ^/
func Console.getCanonical();
/^ Set whether terminal is echoing characters read ^/
func Console.setEcho(flag);
/^ Write text "text" to stdout with new line ^/
func Console.WriteLine(text);
/^ Get whether terminal is echoing characters read ^/
func Console.getEcho();
/^ Create in memory filesystem ^/
func FS.CreateMemoryFilesystem();
/^ Create filesystem ^/
func FS.CreateFilesystem(fs);
/^ Create stream ^/
func FS.CreateStream(strm);
/^ Extract a crvm archive ^/
func FS.ExtractArchive(strm, vfs);
/^ Create a memory stream ^/
func FS.MemoryStream(writable);
/^ Create a subdir filesystem ^/
func FS.SubdirFilesystem(fs, subdir);
/^ Create a mountable filesystem ^/
func FS.MountableFilesystem(root);
/^ Write all text to file ^/
func FS.WriteAllText(fs, filename, content);
/^ Read all text from file ^/
func FS.ReadAllText(fs, filename);
/^ Create a crvm archive ^/
func FS.CreateArchive(fs, strm, name, version, info);
/^ Make absolute path from relative path ^/
func FS.MakeFull(path);
/^ Escape sql text ^/
func Sqlite.Escape(text);
/^ Close sql database ^/
func Sqlite.Close(handle);
/^ Execute sql (returns dictionary of columns key=value an error message as string or undefined) ^/
func Sqlite.Exec(handle, sql);
/^ Opens the database (returns database handle or an error message as string or undefined) ^/
func Sqlite.Open(filename);
/^ Serialize Json ^/
func Json.Encode(any, $indent);
/^ Deserialize Json ^/
func Json.Decode(Json string);
Please wait...
Page is in error, reload to recover