2019-04-29 11:46:48 -04:00
|
|
|
package main
|
2019-04-30 09:14:25 -04:00
|
|
|
//go:generate nswrap
|
2019-04-29 11:46:48 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"gitlab.wow.st/gmp/nswrap/examples/foundation/ns"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
n1 := ns.StringWithUTF8String(ns.CharFromString("hi there"))
|
|
|
|
c1 := n1.CapitalizedString()
|
|
|
|
gs := c1.UTF8String().String()
|
|
|
|
fmt.Println(gs)
|
2019-04-29 16:14:45 -04:00
|
|
|
n2 := ns.StringWithUTF8String(ns.CharFromString("hi world"))
|
|
|
|
n3 := ns.StringWithUTF8String(ns.CharFromString("ok bye"))
|
|
|
|
a := ns.ArrayWithObjects(n1,n2,n3)
|
|
|
|
fmt.Println("Length(a) = ",a.Count())
|
2019-04-29 11:46:48 -04:00
|
|
|
}
|