20 lines
282 B
Go
20 lines
282 B
Go
package hello_world
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"golang.org/x/example/hello/reverse"
|
|
)
|
|
|
|
func helloWorld() string {
|
|
return "hello world"
|
|
}
|
|
|
|
func helloWorldRev() string {
|
|
return (reverse.String("hello world"))
|
|
}
|
|
|
|
func getGoVersion() string {
|
|
return (runtime.Version())
|
|
}
|