-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b502d5
commit cd4c008
Showing
41 changed files
with
802 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":"1ugnot"} | ||
{"creator":"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5","deposit":""} |
16 changes: 13 additions & 3 deletions
16
test3.gno.land/extracted/p/demo2/cryptopunkstar/package.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
package hello | ||
// xryptopunkstar | ||
|
||
func Render(path string) string { | ||
return "Hello World!" | ||
package cryptopunkstar | ||
|
||
|
||
var MsgOfPkg = "this is a public NFTs" | ||
var msgOfPkg = "this is a private NFTS" | ||
|
||
func GetPrivVar() string { | ||
return msgOfPkg | ||
} | ||
|
||
func Gnome(name string) string { | ||
return "greetings " + name + ", welcome to the gnoland" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1gy76zgcx98rwg4shsm7ket8r3qny9gzdpyjhwm","deposit":""} | ||
{"creator":"g1uf8u5jf2m9l80g0zsfq7tufl3qufqc4393jtkl","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
package userinvokes | ||
package hello | ||
|
||
import "fmt" | ||
|
||
var user_invokes map[string]int | ||
|
||
func Render(name string) string { | ||
if (!user_invokes) { | ||
user_invokes = make(map[string]int) | ||
} | ||
|
||
|
||
if (!user_invokes[name]) { | ||
user_invokes[name] += 1 | ||
} else { | ||
user_invokes = 1 | ||
} | ||
|
||
return fmt.Println("Total user invokes %d", user_invokes[name]) | ||
func Render(path string) string { | ||
return "Hello World!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
package hello | ||
|
||
var { | ||
hello string | ||
} | ||
|
||
func SetHello(msg string){ | ||
hello = msg | ||
} | ||
|
||
func GetHello() string { | ||
return hello | ||
func Render(path string) string { | ||
return "Hello World!" | ||
} |
12 changes: 3 additions & 9 deletions
12
test3.gno.land/extracted/r/bluehoneybadger/person/person.gno
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
package person | ||
|
||
// Importing `strconv` to be able to cast the age to string so it can be concatenated | ||
import "strconv" | ||
|
||
var ( | ||
myName = "John Smith" | ||
myAge = 42 | ||
myAddress = "123 Main Street" | ||
) | ||
|
||
func Render(path string) string { | ||
// You could also use "gno.land/p/demo/ufmt" package, check `ufmt.Sprintf()` | ||
// See: https://test3.gno.land/p/demo/ufmt/ufmt.gno | ||
// It works like standard Go's "Sprintf" but it only support "%s" and "%d" it think | ||
return "My name is: " + myName + "my Age is: " + strconv.Itoa(myAge) + "& my Address is: " + myAddress | ||
function Render(path string) string { | ||
return "My name is: " + myName "my Age is: " + myAge "& my Address is: " myAddress | ||
} | ||
|
||
func updateAddress(NewAddress string) string { | ||
function UpdateAdddress(NewAddress string) string { | ||
myAddress = NewAddress | ||
return "Your address has been updated" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1098kpwkwv3r08cat9ssucrq4mznxyv855jgqvx","deposit":""} | ||
{"creator":"g1sycj68ur0n7xytglx0me3f207ktudm80aqpysm","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g10y2y4l4g7cx23tkl9jy5u638lw5aykvx7upqaz","deposit":"1ugnot"} | ||
{"creator":"g1j8jwsce3vcry6s8qmmkxuwuhzww0j8396n3rgm","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g14qvahvnnllzwl9ehn3mkph248uapsehwgfe4pt","deposit":"1ugnot"} | ||
{"creator":"g1ccv99f5wjrd2nzkw7md9kkdy7h4yncstzua7ka","deposit":"1ugnot"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1lk45335udge6nefk733e852rmexrc94m52tdt9","deposit":""} | ||
{"creator":"g1h6n749m920lvaef2qrpsa2vmssr4sq60ykqks3","deposit":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
package main | ||
package hello | ||
|
||
import ( | ||
"fmt" | ||
) | ||
|
||
func main() { | ||
fmt.Println("Hello, world!") | ||
func Hello() string { | ||
return "Hello() called" | ||
} | ||
|
||
// func Render() string { | ||
// return "Render() called" | ||
// } | ||
|
||
func Render(path string) string { | ||
return "Render(path string) called with\n# " + path | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1gy76zgcx98rwg4shsm7ket8r3qny9gzdpyjhwm","deposit":""} | ||
{"creator":"g1ndzpczjr2rzrchtkm3tsut2xjfn50mlgax2v77","deposit":"1ugnot"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
package hello | ||
|
||
func Render(path string) string { | ||
return "Hello World!" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"creator":"g1eussptehceyrtzw69kek72qy8d40rjrf654rrt","deposit":""} | ||
{"creator":"g1t3hhyrrugmk0ujvc90jh36u8kw03fdj23skrmy","deposit":"1ugnot"} |
Oops, something went wrong.