Golang sha256 sample code
package main

import (
    "crypto/sha256"
    "encoding/hex"
    "fmt"
)

func encode(input []byte) string {
    hash := sha256.Sum256(input)
    return hex.EncodeToString(hash[:])
}

func main() {
    input := "1234567"
    encoded := encode([]byte(input))
    fmt.Println("Encoded:", encoded)
}
SHA256Hash Code Sample