18 lines
315 B
Go
18 lines
315 B
Go
// Copyright 2023 Uber Technologies, Inc.
|
|
// Licensed under the Apache License, Version 2.0
|
|
|
|
package main
|
|
|
|
// #include <stdio.h>
|
|
// char* hello() { return "hello, world"; }
|
|
// void phello() { printf("%s\n", hello()); }
|
|
import "C"
|
|
|
|
func main() {
|
|
C.phello()
|
|
}
|
|
|
|
func Chello() string {
|
|
return C.GoString(C.hello())
|
|
}
|