Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

Playground

gnomod.toml

module = "gno.land/r/g1aeddlftlfk27ret5rf750d7w5dume3kcsm8r8m/ipfstest"
gno = "0.9"

[addpkg]
  creator = "g1aeddlftlfk27ret5rf750d7w5dume3kcsm8r8m"
  height = 756127
  max_deposit = "100000000ugnot"

ipfstest.gno

// Package ipfstest renders one image linked as ipfs://, to check that gnoweb
// loads such links through its IPFS gateway.
package ipfstest

func Render(_ string) string {
	return "# IPFS gateway check\n\n" +
		"The image below is linked as `ipfs://`; gnoweb loads it through its gateway.\n\n" +
		"![Test image](ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi)\n"
}