Documentation
¶
Overview ¶
Example ¶
package main
import (
"fmt"
"time"
"github.com/xoctopus/x/ptrx"
)
func main() {
fmt.Println(*ptrx.Ptr(10))
fmt.Println(*ptrx.Ptr(uint64(10)))
fmt.Println(*ptrx.Ptr("abc"))
fmt.Println(ptrx.Ptr(time.Second))
fmt.Println(ptrx.Ptr(time.Hour))
}
Output: 10 10 abc 1s 1h0m0s
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.