package main
import (
"fmt"
"github.com/qtgolang/qt"
)
func main() {
j:=qt.JSON()
j.Untie(`{"a":1,"b":true}`)
fmt.Println(j.GetFloat64("a"))
fmt.Println(j.GetBool("b"))
}
package main
import (
"fmt"
"github.com/qtgolang/qt"
)
func main() {
a := qt.Aes()
a.SetPadding(qt.Type_Const_Padding_Pkcs5)
a.SetEncMethod(qt.Type_Const_AES_DES_ECB)
a.SetFill(true)
a.SetKey("01234567890123456")
fmt.Println(hex.EncodeToString(a.Encrypt([]byte("000000000"))))
}
package main
import (
"fmt"
"github.com/qtgolang/qt"
)
func main() {
h := qt.Http()
h.Open("GET", "https://www.baidu.com")
h.Send("")
fmt.Println(h.GetBodyAuto())
}