ffi

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToDynamic

func BoolToDynamic(args []*runtime.Object, _ checker.Type) *runtime.Object

func DecodeBool

func DecodeBool(args []*runtime.Object, outType checker.Type) *runtime.Object

fn (Dynamic) Bool!Error

func DecodeFloat

func DecodeFloat(args []*runtime.Object, outType checker.Type) *runtime.Object

fn (Dynamic) Float!Error

func DecodeInt

func DecodeInt(args []*runtime.Object, outType checker.Type) *runtime.Object

fn (Dynamic) Int!Error

func DecodeString

func DecodeString(args []*runtime.Object, outType checker.Type) *runtime.Object

fn (Dynamic) Str!Error

func DynamicToList

func DynamicToList(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (Dyanmic) [Dynamic]!Str

func DynamicToMap

func DynamicToMap(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (Dyanmic) [Dynamic:Dynamic]!Str

func EnvGet

func EnvGet(args []*runtime.Object, _ checker.Type) *runtime.Object

EnvGet retrieves an environment variable

func ExtractField

func ExtractField(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (Dynamic, Str) Dynamic!Str

func FS_AppendFile

func FS_AppendFile(args []*runtime.Object, _ checker.Type) *runtime.Object

func FS_CreateFile

func FS_CreateFile(args []*runtime.Object, _ checker.Type) *runtime.Object

func FS_DeleteFile

func FS_DeleteFile(args []*runtime.Object, _ checker.Type) *runtime.Object

func FS_Exists

func FS_Exists(args []*runtime.Object, _ checker.Type) *runtime.Object

func FS_IsDir added in v0.3.0

func FS_IsDir(args []*runtime.Object, _ checker.Type) *runtime.Object

func FS_IsFile added in v0.3.0

func FS_IsFile(args []*runtime.Object, _ checker.Type) *runtime.Object

func FS_ListDir added in v0.3.0

func FS_ListDir(args []*runtime.Object, outType checker.Type) *runtime.Object

func FS_ReadFile

func FS_ReadFile(args []*runtime.Object, _ checker.Type) *runtime.Object

func FS_WriteFile

func FS_WriteFile(args []*runtime.Object, _ checker.Type) *runtime.Object

func FloatFloor

func FloatFloor(args []*runtime.Object, _ checker.Type) *runtime.Object

FloatFloor returns the floor of a float

func FloatFromInt

func FloatFromInt(args []*runtime.Object, _ checker.Type) *runtime.Object

FloatFromInt converts an integer to a float

func FloatFromStr

func FloatFromStr(args []*runtime.Object, _ checker.Type) *runtime.Object

FloatFromStr parses a string to a float, returning Float? (Maybe<Float>)

func FloatToDynamic

func FloatToDynamic(args []*runtime.Object, _ checker.Type) *runtime.Object

func GetPathValue

func GetPathValue(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (req: Dynamic, name: Str) Str

func GetQueryParam

func GetQueryParam(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (req: Dynamic, name: Str) Str

func GetReqPath

func GetReqPath(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (req: Dynamic) Str

func GetTodayString

func GetTodayString(_ []*runtime.Object, _ checker.Type) *runtime.Object

func HTTP_Send

func HTTP_Send(args []*runtime.Object, returnType checker.Type) *runtime.Object

fn (method: Str, url: Str, body: Str, headers: [Str:Str]) Response!Str

func HTTP_Serve

func HTTP_Serve(args []*runtime.Object, _ checker.Type) *runtime.Object

fn serve(port: Int, handlers: [Str:fn(Request) Response])

func IntFromStr

func IntFromStr(args []*runtime.Object, _ checker.Type) *runtime.Object

func IntToDynamic

func IntToDynamic(args []*runtime.Object, _ checker.Type) *runtime.Object

func IsNil

func IsNil(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (Dynamic) Bool

func Join added in v0.4.0

func Join(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (fibers: [Fiber]) Void

func JsonEncode

func JsonEncode(args []*runtime.Object, _ checker.Type) *runtime.Object

Encode an Ard value into a JSON string

func JsonToDynamic

func JsonToDynamic(args []*runtime.Object, _ checker.Type) *runtime.Object

Parse external data (JSON text) into Dynamic object

func ListToDynamic added in v0.2.0

func ListToDynamic(args []*runtime.Object, _ checker.Type) *runtime.Object

func MapToDynamic added in v0.2.0

func MapToDynamic(args []*runtime.Object, _ checker.Type) *runtime.Object

func NewList

func NewList(args []*runtime.Object, ret checker.Type) *runtime.Object

func Now added in v0.4.1

func Now(_ []*runtime.Object, _ checker.Type) *runtime.Object

fn now() Int

func OsArgs added in v0.3.0

func OsArgs(_ []*runtime.Object, _ checker.Type) *runtime.Object

func PanicWithMessage

func PanicWithMessage(args []*runtime.Object, _ checker.Type) *runtime.Object

PanicWithMessage panics with a message

func Print

func Print(args []*runtime.Object, _ checker.Type) *runtime.Object

Print prints a value to stdout

func ReadLine

func ReadLine(args []*runtime.Object, _ checker.Type) *runtime.Object

ReadLine reads a line from stdin

func Sleep

func Sleep(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (ns: Int) Void

func SqlBeginTx added in v0.3.0

func SqlBeginTx(args []*runtime.Object, _ checker.Type) *runtime.Object

SqlBeginTx begins a new transaction

func SqlClose added in v0.2.0

func SqlClose(args []*runtime.Object, _ checker.Type) *runtime.Object

SqlClose closes a database connection

func SqlCommit added in v0.3.0

func SqlCommit(args []*runtime.Object, _ checker.Type) *runtime.Object

SqlCommit commits a transaction

func SqlCreateConnection added in v0.2.0

func SqlCreateConnection(args []*runtime.Object, _ checker.Type) *runtime.Object

SqlCreateConnection creates a new database connection from a connection string Supports connection strings for various drivers: - SQLite: "file:test.db" or "test.db" - PostgreSQL: "postgres://user:password@localhost:5432/dbname" - MySQL: "user:password@tcp(localhost:3306)/dbname"

func SqlExecute added in v0.2.0

func SqlExecute(args []*runtime.Object, _ checker.Type) *runtime.Object

executes a query and doesn't return rows

func SqlExtractParams added in v0.2.0

func SqlExtractParams(args []*runtime.Object, _ checker.Type) *runtime.Object

Extract parameter names from a sql expression in the order they appear

func SqlQuery added in v0.2.0

func SqlQuery(args []*runtime.Object, _ checker.Type) *runtime.Object

executes a query and returns the rows

func SqlRollback added in v0.3.0

func SqlRollback(args []*runtime.Object, _ checker.Type) *runtime.Object

SqlRollback rolls back a transaction

func StrToDynamic

func StrToDynamic(args []*runtime.Object, _ checker.Type) *runtime.Object

func VoidToDynamic

func VoidToDynamic(args []*runtime.Object, _ checker.Type) *runtime.Object

func WaitFor

func WaitFor(args []*runtime.Object, _ checker.Type) *runtime.Object

fn (wg: Dynamic) Void

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL