User:Kannix/kyoto

From OpenStreetMap Wiki
Jump to navigation Jump to search

http://t1.openseamap.org/seamark/12/2108/1340.png

package main

import (
	"bytes"
	"encoding/binary"
	"fmt"
)

type keyLayout struct {
    z uint32
    x uint32
    y uint32
}

var key        keyLayout

func main() {

	key.z = 12
        key.x = 2108
        key.y = 1340
	buf := new(bytes.Buffer)
	err := binary.Write(buf, binary.LittleEndian, key)
	if err != nil {
		fmt.Println("binary.Write failed:", err)
	}
	fmt.Printf("% x", buf.Bytes())
}