Thanks to visit codestin.com
Credit goes to github.com

Skip to content

syscall.Stat_t: consider shimming os.Ctime #1047

Open
@paralin

Description

@paralin

Such that the following code (from go-git) compiles properly without requiring a separate logic for GopherJS:

		if os, ok := sys.(*syscall.Stat_t); ok {
			// not supported on gopherjs:
			e.CreatedAt = time.Unix(int64(os.Ctime), int64(os.CtimeNsec))
                 }

Does this make sense to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions