“Golang strconv” Ответ

Golang Parse Float64

f, err := strconv.ParseFloat("3.1415", 64)
Worrisome Wasp

Golang strconv

Golang program that converts slice to string

package main

import (
    "fmt"
    "strings"
)

func main() {
    // Slice of 3 strings.
    values := []string{"fish", "chicken", "lettuce"}
    // Convert slice into a string.
    result := strings.Join(values, ",");
    fmt.Println(result)
}

Output

fish,chicken,lettuce
Grumpy Giraffe

Ответы похожие на “Golang strconv”

Вопросы похожие на “Golang strconv”

Смотреть популярные ответы по языку

Смотреть другие языки программирования