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

cowsaydemo/v0 package

Overview

Package cowsaydemo is a small gnoweb demo of the cowsay renderer provided by the p/moul/x/daily/cowsay(/p/moul/x/daily/cowsay/v0) library: it makes the ASCII cow say whatever you put in the path.

It contains no rendering logic of its own — the art comes entirely from `cowsay.Say`.

Function

Render

func Render(path string) string

Render displays the cow for gnoweb.

Example
1Render("")             -> default message ("Moo!")
2Render("/hello there") -> renders "hello there", word-wrapped

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/cowsaydemo/v0.Render()"

Result