mirror of
https://github.com/taigrr/gopher-os
synced 2026-04-01 08:18:42 -07:00
Use pwd as a workspace; move sources to src/gopheros and rewrite imports
By setting up pwd as a Go workspace, we can trim import paths from something like "github.com/achilleasa/gopher-os/kernel" to just "kernel". These changes make forking easier and also allows us to move the code to a different git hosting provider without having to rewrite the imports.
This commit is contained in:
12
src/gopheros/kernel/mem/size.go
Normal file
12
src/gopheros/kernel/mem/size.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package mem
|
||||
|
||||
// Size represents a memory block size in bytes.
|
||||
type Size uint64
|
||||
|
||||
// Common memory block sizes.
|
||||
const (
|
||||
Byte Size = 1
|
||||
Kb = 1024 * Byte
|
||||
Mb = 1024 * Kb
|
||||
Gb = 1024 * Mb
|
||||
)
|
||||
Reference in New Issue
Block a user