-
Notifications
You must be signed in to change notification settings - Fork 0
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
b687ea9
commit d45004e
Showing
3 changed files
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"averageTPS":96,"blocks":[{"blockNumber":9,"created":"2023-04-19T14:30:42.182881552Z","numTransactions":10,"gasUsed":1590000,"gasLimit":10000000},{"blockNumber":10,"created":"2023-04-19T14:30:56.851804857Z","numTransactions":60,"gasUsed":9637791,"gasLimit":10000000},{"blockNumber":11,"created":"2023-04-19T14:30:57.86886739Z","numTransactions":30,"gasUsed":4820970,"gasLimit":10000000}]} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package runtime | ||
|
||
type Language string | ||
|
||
const ( | ||
French Language = "french" | ||
Italian Language = "italian" | ||
Hindi Language = "hindi" | ||
Bulgarian Language = "bulgarian" | ||
Serbian Language = "serbian" | ||
) | ||
|
||
// GetGreeting generates a greeting in | ||
// the specified language | ||
func GetGreeting(language Language) string { | ||
switch language { | ||
case French: | ||
return "Bonjour" | ||
case Italian: | ||
return "Ciao" | ||
case Hindi: | ||
return "नमस्ते" | ||
case Bulgarian: | ||
return "Здравейте" | ||
case Serbian: | ||
return "Здраво" | ||
default: | ||
return "Hello" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package runtime | ||
|
||
var greeting string | ||
|
||
func init() { | ||
greeting = "Hello" | ||
} | ||
|
||
// SayHello says hello to the specified name, using | ||
// the saved greeting | ||
func SayHello(name string) string { | ||
return greeting + " " + name + "!" | ||
} |