info

command
v1.0.0-preview.30 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

info

A command line tool that can show various information.

Available commands:

  • dump-builtin-types: Dumps all built-in types and their members, including nested types:

    $ go run ./runtime/cmd/info -nested -members dump-builtin-types
    ...
    - PublicAccount
      - let address: Address
      - let availableBalance: UFix64
      - let balance: UFix64
      - let capabilities: PublicAccount.Capabilities
      - let contracts: PublicAccount.Contracts
      - fun forEachAttachment(_ f: fun(&AnyStructAttachment): Void): Void
      - fun forEachPublic(_ function: fun(PublicPath, Type): Bool): Void
      - view fun getType(): Type
      - view fun isInstance(_ type: Type): Bool
      - let keys: PublicAccount.Keys
      - let publicPaths: [PublicPath]
      - let storageCapacity: UInt64
      - let storageUsed: UInt64
    - PublicAccount.Capabilities
      - view fun borrow<T: &Any>(_ path: PublicPath): T?
      - fun forEachAttachment(_ f: fun(&AnyStructAttachment): Void): Void
      - view fun get<T: &Any>(_ path: PublicPath): Capability<T>?
      - view fun getType(): Type
      - view fun isInstance(_ type: Type): Bool
    ...
    
  • dump-builtin-values: Dumps all built-in values and their types

    $ go run ./runtime/cmd/info -members dump-builtin-values
    - view fun Address(_ value: Integer): Address
      - view fun fromBytes(_ bytes: [UInt8]): Address
      - view fun fromString(_ input: String): Address?
      - view fun getType(): Type
      - view fun isInstance(_ type: Type): Bool
    ...
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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