Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

realmid source pure

Functions 4

func Current

1func Current() string
source

Returns the identifier of the current realm.

func IsPackage

1func IsPackage(id string) bool
source

Checks if the given identifier is a package path. Package paths contain dots (e.g., "gno.land/p/demo/users").

func IsUser

1func IsUser(id string) bool
source

Checks if the given identifier is a user address. User addresses don't contain dots (e.g., "g1abc...def").

func Previous

1func Previous() string
source

Returns the identifier of the previous realm in the call chain.

Imports 2

  • chain/runtime/unsafe stdlib
  • strings stdlib

Source Files 2