Skip to content

Returns the value declared in go's basic type as a string. gats is named as an abbreviation of go any to string.

License

Notifications You must be signed in to change notification settings

harakeishi/gats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gats

Returns the value declared in go's basic type as a string.
gats is named as an abbreviation of go any to string.

Importing

import (
    "github.com/harakeishi/gats"
)

Documentation

Visit the docs on GoDoc

usage

package main

import (
	"fmt"
	"github.com/harakeishi/gats"
)

func main() {
	value := []byte("test")
	result, err := gats.ToString(value)
    if err != nil {
        fmt.Println(err)
    }
	fmt.Println(result)
    // Output: test
}

License

Copyright (c) 2023 harakeishi

Licensed under MIT

About

Returns the value declared in go's basic type as a string. gats is named as an abbreviation of go any to string.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages