adder

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package adder binds a Rust crate, built by the CLI from ./rust as mygo-plugin.json says, with package ffi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a, b int32) int32

Add returns a + b, wrapping around.

func CountVowels

func CountVowels(s string) uint32

CountVowels returns how many ASCII vowels s has.

func Fibonacci

func Fibonacci(n uint32) uint64

Fibonacci returns the nth Fibonacci number.

func Greeting

func Greeting(name string) string

Greeting returns a greeting of name, which the crate allocates and frees.

func Load

func Load() error

Load loads the library and binds its functions; the others need it.

func Version

func Version() string

Version returns the crate's name and version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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