Go boolPtr()

1 개요[ | ]

package main

import "fmt"

func boolPtr(b bool) *bool {
    return &b
}

func main() {
    truePtr := boolPtr(true)
    falsePtr := boolPtr(false)

    fmt.Println("truePtr:", *truePtr)
    fmt.Println("falsePtr:", *falsePtr)
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}