github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/strconv/atob.go (about)

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package strconv
     6  
     7  // ParseBoolは文字列で表されるブール値を返します。
     8  // 1、t、T、TRUE、true、True、0、f、F、FALSE、false、Falseを受け入れます。
     9  // その他の値はエラーを返します。
    10  func ParseBool(str string) (bool, error)
    11  
    12  // FormatBoolはbの値に応じて"true"または"false"を返します。
    13  func FormatBool(b bool) string
    14  
    15  // AppendBoolはbの値に応じて、"true"または"false"をdstに追加し、拡張されたバッファを返します。
    16  func AppendBool(dst []byte, b bool) []byte